Programming Assignment 4

In this assignment you will create a Message Driven Bean (MDB) to interface with your transform Session Bean that you wrote for Programming assignment 3. If your original bean did not take the complete xml as input (and instead took the locations of the file as input) you will need to modify your Session Bean to do this. The MDB will recieve messages containing xml documents and possibly xslt transform documents as well. The MDB will then invoke the Session Bean and return the resulting transform in a message to the client.

Steps

1. Read through Chapter 9 of Mastering Java Beans to understand the fundamentals behind the MDB. See these links for more examples:

2. Implement, deploy, and test the example given in chapter nine.

3. Modify your servlet to pass the xml files as messages to the MDB. Test to ensure this functionality.

4. Modify the MDB to call the Session Bean and Print the results. Test some more!

5. Modify the MDB to return the transforms via a queue. Modify the servlet to accept and display these transforms.

We recommend using jboss's default queues for message input and output. Use "queue/a" for input to your MDB, and "queue/b" for output from your MDB.

Deliverables: