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
- Read through Chapter 9 of Roman et al. to understand the
fundamentals behind the MDB. See these links for more examples:
- Implement, deploy, and test the example given in chapter 9. You
can also check here
for a HelloWorld MDB.
- 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.
- Write a servlet to pass the xml files (Inquiry.xml) as messages to
the MDB. Test to ensure this functionality.
- 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
- Deliver the application as a
.ear archive. Put your source code, your XSLTs from PA4, XSDs
from PA4, Inquiry.xml, your sample output xml file, the .ear
file, and any extra files in a zip
file and submit it.
- Also include a README explaining your architecture and any
caveats of implementation in your zip file.