Source code lay out: -------------------- pc_propagation entities -- entity source code and persistence.xml ejbs -- ejb classes are here. web-app2 -- servlet source code, html pages and web.xml are here. build.xml Build steps: ------------ change glassfish.home property in build.xml. glassfish.home property points to the root of the application server installation directory. The only external library used by build process is javaee.jar which contains all the standard Java EE API classes. ant build: produces build/pc_propagation.ear ant deploy: deploys the app to app server. ant verify: verifies compliance of the app against Java EE spec. To run the application ---------------------- open http://localhost:8080/web-app2/ Using registration.html link, register a user. Using login.html link, login a few times. Using report.html, see the report for a user. In the server.log, you can see debug statements. Database Setup: --------------- No need to set up data sources or create tables. The application uses Java2DB feature in glassfish and creates the table automatically during deployment (See --createtables option used in build.xml). So all you need to do is to start Derby by running the following command: $GLASSFISH_HOME/bin/asamdin start-database You are free to use any other database that you like. To do that you have to create a datasource (refer to app server document for this) and configure persistence.xml. Some common Sun Java System Application Server commands: -------------------------------------------------------- To start the appserver: asadmin start-domain To stop the appserver: asadmin stop-domain To deploy an app: asadmin deploy --user admin --passwordfile .adminpassword.txt --createtables --retrieve /tmp change user name and password to whatever you used during installtion. To undeploy an app: asadmin undeploy --user admin --passwordfile .adminpassword.txt