CSC 513 Programming Assignment 5: Transformation with Message Driven Beans

In this assignment you will create a Message Driven Bean (MDB) to perform the XSLT transforms you wrote earlier in Programming Assignment 4 and a servlet to invoke the MDB. Your bean would take the complete Inquiry.xml as input. The MDB will recieve the messages containing xml document and return the resulting transform in a message to the client, which would be a servlet (or jsp)

Steps

  1. Read through Chapter 9 of Roman et al. to understand the fundamentals behind the MDB. See these links for more examples:
  2. Implement, deploy, and test the example given in chapter 9. You can also check here for a HelloWorld MDB.
  3. Modify this example to accept an XML message as input, transform the message, and return an XML message as output. Perform your transforms using the Transform class from Saxon toolkit api . Implement your MDB to return the transforms via a queue.
  4. Write a servlet to pass the xml files (Inquiry.xml) as messages to the MDB. Test to ensure this functionality.
  5. Modify the servlet to accept and display the transforms returned by the MDB.

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