This assignment helps you become familiar with basic technologies for developing enterprise web applications. It involves adding Enterprise JavaBeans to the previous assignment. Along the way, you will learn how to set up an environment based on a product such as JBoss. In this assignment, we will be using the following
Package the code you developed for PA1 into a set of EJBs. You will need EJBs as follows:
You should read this article to understand the basics of creating and deploying enterprise beans in Jboss. You should also download the JBoss AS Getting Started Guide 4.0.2 Rev 4 (register first) . Based on the examples, provide, create build.xml that accomplishes the following:
In addition to deployment descriptors, which you used in the previous assignment, you need the following deployment descriptors for declaring the deployment properties for enterprise beans:
The above schema may be implemented outside the program before running the program by using the mysql command-line client. Your program then just queries the table, and inserts and modifies rows.
If your program conforms to the above, then there will be no need for a README file. Your program should work out of the box.
Ant is a great tool for building and packaging java applications. It is similar to the GNU make utility---consider Ant its Java/XML avatar. All I do is edit my source files and invoke ant to build, package and deploy the .ear into JBoss. I highly recommend using it to build your .ear archive. See this build file. Study it carefully. It yields useful clues about the structure of your enterprise application.