Section 6.15. Testing Iteration 1


6.15. Testing Iteration 1

Now that we've written and deployed an EJB and called it from the Controller Servlet, let's test the application to ensure that everything still works properly. Here are the steps to build and deploy the application:

  • Type ant in the root directory of ch06-a to build the project.

  • Shutdown JBoss so that the Ant script can clean up the JBoss deployment area.

  • Type ant colddeploy to deploy the EAR file (jaw.ear) to the $JBOSS_HOME/server/default/deploy directory.

  • Start JBoss back up.

  • Go to the ch06-a/sql sub-directory and type ant to modify the database.

  • Visit http://localhost:8080/jaw in a web browser.

When you click on the "View Inventory" link on the JAW Motors home page, the Controller Servlet takes you to the Inventory page where you can view, add, edit, or delete cars in JAW Motors' Inventory.

We've spent a lot of time in Iteration 1 establishing the core infrastructure for using EJBs in the application, and now we'll move on to Iterations 2 and 3, where we'll move the business logic from the Web Tier to the EJB, and then finally add the ability to buy a car. Since we have all the plumbing in place, these next two Iterations will be much shorter than the first.



JBoss at Work. A Practical Guide
JBoss at Work: A Practical Guide
ISBN: 0596007345
EAN: 2147483647
Year: 2004
Pages: 197

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net