This is a three tier, J2EE based email subscription service program. The frontend of the service will be a web tier. A servlet will request the name and email of the new subscriber and at the same time, it will display the list of existing subscribers. The business tier will be an EJB. The EJB will keep the list of existing subscribers and will implement methods to insert a new one and to return the current list. You are just required to maintain a non-persistent record of subscribers (e.g. stateful, session bean). Implement an EIS tier to support persistency (with cloudscape and thus creating a four tier application). A basic template of the main files are provided (attached). Files [url removed, login to view], [url removed, login to view], and [url removed, login to view] define the remote interface, implementation, and home interface of the EJB. File [url removed, login to view] outlines the servlet. File [url removed, login to view] is a welcome file that invokes the servlet. Steps to complete: 1. Define the remote interface of the application. You will need two methods: insertEntry(...) which inserts a new entry to the list and viewEntries(...) to retrieve the current list. 2. Implement the remote methods. Each entry in the list must include the name and email of theperson and creation date. You may want to define an extra class to group all the information. 3. An entry will be added only if there is no such email in the list. 4. Implement the servlet. Note that the servlet has no memory about the existing list of subscribers. It will invoke the EJB to either insert or retrieve entries. 5. Deploy the service in J2EE. Use web context "sol6" (so as to access the service with URL http://hostname/sol6). When deploying, you will need to include your EJB classes, servlet, and index.jsp. Attach your .ear file to your submission. 6. Implement persistency with cloudscape. Use file [url removed, login to view] as an example on how to create the database. You may submit the step 6 solution as a separate project.
see attached file