Directory structure and development environment set up

Similar documents
Web Application Architecture (based J2EE 1.4 Tutorial)

KonaKart Portlet Installation for Liferay. 2 nd January DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK

JADE development for CDC on COMBO Setting up the tool chain

How to Publish Any NetBeans Web App

CodeCharge Studio Java Deployment Guide Table of contents

Guide to Install J Meter

Liferay Portal 4 - Development in the Extension Environment. Joseph Shum Alexander Chow Redmond Mar Jorge Ferrer

Dspace 5.1. Installation on Windows 7 (32 bit system)

MyLEAD Release V1.3 Installation Guide

Embedding Graphics in JavaDocs (netbeans IDE)

WSAMI Middleware Developer Guide

Abstract. Avaya Solution & Interoperability Test Lab

JSF: Introduction, Installation, and Setup

Hackveda Appsec Labs Java Programming Course and Internship Program Description:

An Integrated Approach to Managing Windchill Customizations. Todd Baltes Lead PLM Technical Architect SRAM

Java Training Center, Noida - Java Expert Program

1. Configuring Azure and EBP for a simple demo

CHAPTER 6. Java Project Configuration

Getting Started with the Bullhorn SOAP API and Java

Jakarta Struts: An MVC Framework

Javadocing in Netbeans (rev )

This assignment requires that you complete the following tasks (in no particular order).

RadBlue s S2S Quick Start Package (RQS) Developer s Guide. Version 0.1

COPYRIGHTED MATERIAL

VISDA. Installation Guide

ewon Flexy JAVA J2SE Toolkit User Guide

Java Programming Language

CSC 8205 Advanced Java

Application Development in JAVA. Data Types, Variable, Comments & Operators. Part I: Core Java (J2SE) Getting Started

RASP Library for Java Version 2.0.0

Openbravo r2.10 quick-start. installation guide

The project is conducted individually The objective is to develop your dynamic, database supported, web site:

Author - Ashfaque Ahmed

Users Guide. Table of contents

NetBeans IDE Field Guide

Open XAL Project Architecture

Introduction to Software Engineering: Tools and Environments. Session 10. Oded Lachish

Getting Started. Table of contents

Build. System building

IceCube s Development Environment.

Java.. servlets and. murach's TRAINING & REFERENCE 2ND EDITION. Joel Murach Andrea Steelman. IlB MIKE MURACH & ASSOCIATES, INC.

Install Instructions for SAS Clinical Standards Toolkit in SAS V9.1.3

6.170 Laboratory in Software Engineering Java Style Guide. Overview. Descriptive names. Consistent indentation and spacing. Page 1 of 5.

Experiment No: Group B_2

THIS IS ONLY SAMPLE RESUME - DO NOT COPY AND PASTE INTO YOUR RESUME. WE ARE NOT RESPONSIBLE Name: xxxxxx

UPS Web Services Sample Code Documentation

Java EE Application Assembly & Deployment Packaging Applications, Java EE modules. Model View Controller (MVC)2 Architecture & Packaging EJB Module

RCMS 2 User Guide. Version 1.1. Grid Enabled Remote Instrumentation with Distributed Control and Computation

Pulmonary Function Test Processing

Introduction. This course Software Architecture with Java will discuss the following topics:

Platforms. Table of contents

JavaEdge Setup and Installation

Oracle Fusion Middleware. 1 Oracle Team Productivity Center Server System Requirements. 2 Installing the Oracle Team Productivity Center Server

ZK Mobile for Android The Quick Start Guide

An Introduction to Ant

25. DECUS Symposium THE Application Development Environment for OpenVMS

ThingWorx Relational Databases Connectors Extension User Guide

What is Maven? Apache Maven is a software project management and comprehension tool (build, test, packaging, reporting, site, deploy).

PHP Development for ClearPath. Session 3028, Tuesday, May 15, 2012, 10:30AM Ron Neubauer, Principal Engineer, Unisys Corporation

How To Guide Using and Developing Custom Phases in IKAN ALM

ZK Mobile The Quick Start Guide

Writing Servlets and JSPs p. 1 Writing a Servlet p. 1 Writing a JSP p. 7 Compiling a Servlet p. 10 Packaging Servlets and JSPs p.

what and why DSpace AddOn and Component Management System

Openbravo quick-start. installation guide

Outline. Configuration management. Main Phases MOTIVATION

Weblogic8.1/9.1, Apache Tomcat 5.0, Jboss, WebSphere7.0, Axis. Windows XP/2000/NT/98/95, UNIX and MS Dos, iphone SDK, Mac Os x

Developing and Deploying vsphere Solutions, vservices, and ESX Agents. 17 APR 2018 vsphere Web Services SDK 6.7 vcenter Server 6.7 VMware ESXi 6.

J2EE Interview Questions

Getting Started Guide

Please see the docs for latest release in 1.99.* Some of the information below might be outdated

One application has servlet context(s).

Assignment: Software Testing

DOC // JAVA TOMCAT WEB SERVICES TUTORIAL EBOOK

[cover art/text goes here] [vertical list of authors] Copyright,.

Rational Application Developer 7 Bootcamp

MIDP 2.0: End-To-End Sockets API Example. Version 1.0; February 22, Enterprise

What s NetBeans? Like Eclipse:

Developing and Deploying vsphere Solutions, vservices, and ESX Agents

Installing the IBM InfoSphere MDM version 11.4 Fix Pack 2 Manually

Introduction to Web Application Development Using JEE, Frameworks, Web Services and AJAX

Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat

Installation and Setup Guide Oracle FLEXCUBE Universal Banking Release 12.0 [May] [2012] Oracle Part Number E

Jaffa Reference Guide Jaffa Example1

IceCube's Development Environment. Simon Patton LBNL

Oracle 1Z0-161 Exam. Volume: 67 Questions

BEAWebLogic Server. Introduction to BEA WebLogic Server and BEA WebLogic Express

KonaKart Tile Portlets for Liferay. 24th January DS Data Systems (UK) Ltd., 9 Little Meadow Loughton, Milton Keynes Bucks MK5 8EH UK

Getting Started with the Cisco Multicast Manager SDK

HYPERION SYSTEM 9 BI+ GETTING STARTED GUIDE APPLICATION BUILDER J2EE RELEASE 9.2

HFM / OBIEE Integration using the new ADM thin driver

App Studio 4.1 Deployment Guide

Abstract. Avaya Solution & Interoperability Test Lab

CIS-CAT Pro Dashboard Documentation

Advanced Java Programming

Open Cloud Rhino SMPP Resource Adaptors Users Guide

ADVANCED JAVA COURSE CURRICULUM

Installation Instructions for spamtracker components:

Web API Lab. The next two deliverables you shall write yourself.

How To Get Database Schema In Java Using >>>CLICK HERE<<<

Building Web Applications With The Struts Framework

Transcription:

Directory structure and development environment set up 1. Install ANT: Download & unzip (or untar) the ant zip file - jakarta-ant-1.5.1-bin.zip to a directory say ANT_HOME (any directory is fine) Add the following to the PATH: (ANT_HOME)\jakarta-ant-1.5.1\bin for example o On Linux: lets say you downloaded the tar to /usr/anthome then Set to be - $PATH;/usr/ anthome/jakarta-ant-1.5.1\bin o On Windows. Lets say you downloaded the ant zip file to C:/anthome then set path using: Set PATH=%PATH%; C:\anthome\jakarta-ant- 1.5.1\bin Type ant- help on the command prompt if you see the help message from ant with different options ant is installed fine. 2. Unzip the RTPDEMO.zip file this will be downloaded as a CVS refresh from sourceforge in future. It will create the following directory structure

This directory structure along with the build file should make development as well as deployment easier. Lets spend a minute discussing the directory structure under src (source): Under our project directory (com.theopenstack.rtpdemo) we have two important sub directories model and view. MODEL: The model directory contains the value objects (or business objects) under vo directory, the interfaces for our model under intf directory. We have defined the ProductPriceIF interface that has two methods one returns the list of products and other returns price of a product. You will see the interface java file under the intf directory. The third important part of our model is our thin adapter layer. There are two sample adapters defined under the adapter sub directory JDBCAdapter and WSAdapter. Both these adapters implement the ProductPriceIF interface. Thus both the adapters return the list of Product value object (defined under the vo directory). The JDBCAdapter connects to a MySQL database using JDBC and retrieves products based on the search string. The WSAdapter invokes a web service to do the same. The ws directory under the adapter directory stores the generated client classes for the web service. VIEW: The action and form directories under view are self-explanatory. They store the action classes and form beans of STRUTS, respectively. The pages directory stores the JSP and HTML pages. The config directory stores the config files (such as struts config) the properties files (for Messages etc) and the Tag Libraries for STRUTS. Simulated Back End Systems: In the real time pricing application the product list and price actually comes from a variety of back end systems as described in the specs. We have demonstrated integration with a back end database using JDBC and a back end Application that exposes a Web Service. For our demo application to work we have simulated these back end systems. These simulated back end system code will reside in the simulated directory. Rest of the directory structure is standard. The util directory under source contains utility code like service locator. The lib directory under RTPDEMO base directory has all the jar files of the base components such as STRUTS, Log4J, Axis and so on. The doc directory will contain the documents such as JavaDoc and other docs.

The test directory contains the Unit tests (Junit). 3. Build and deploy the demo: After unzipping, open a command prompt and go to the RTPDEMO directory. Update the build.properties file with your environment. Development mode: If you plan to use IDE like NetBeans, ideally you should be able to work on this exact same directory structure, add / modify files, compile and run the JSPs all of this without leaving the IDE. For development mode use build_dev.xml build file while doing the build. Run ant - buildfile build_dev.xml build at the command prompt. Follow the instructions under development mode in the next section. (ant command arguments and the build files are explained later). If you just want to deploy / test on Tomcat, use the build.xml file. Run Run ant deploy at the command prompt. If you are using TomCat directly - just go to http://localhost:8080/rtpdemo/login.jsp And test the app*. Use JDBC or WS as user id and password as password. Any search string for product. Currently the UserVO hard codes the value for BU to be equal to the user id. Hence with JDBC as the user id you are searching for products using the MySQL DB and with WS as the user id web service is being invoked. * For now you need to manually create the Database and test data for testing. On MySQL prompt execute the script using source command to do this. 4. Working in the development mode: Using NetBeans and the ant build in development mode: Now you can open Netbeans and mount the top level directory (RTPDEMO in my case). You are ready for your development work. (If NetBeans is set up properly, it will load all the jars and the build file, else you will need to load those separately). Compiling a Java File: Any time you change or add java files, run the compile target as part of build_dev as shown:

This will compile changed java files and put the classes into the right directory. Modifying a JSP or config files: If you change or add a JSP / HTML / image file, run the buildpages target as shown, at this point of time all it does is copies the JSP /HTML or image files to the correct location for tomcat.

You can just right click on the JSP and click execute to test. Click execute (force reload) if you added a JSP.