An often overlooked by essential part of the J2EE is the Java Messaging Service API, or JMS. When building enterprise systems and adopting IBM?s Model/View/Controller development model, it becomes apparent that not all business transactions must be completed in real-time. JMS offers "near real-time" processing capabilities that can offload resource-intensive processing to back-end systems or defer the processing to a separate thread or process.
In an insurance application, an independent agent may submit an application for insurance. The insurance company needs to perform extensive processing to determine if the application meets its underwriting criteria and to prepare a price quotation for the agent. Using JMS and IBM?s MQ/Series, which is IBM?s underlying implementation of JMS, you can guarantee that the message (the insurance application) is received by the company, the appropriate processing code is invoked to handle the business logic, and that a response is returned to the independent agent.
JMS is supported as part of WebSphere 4.0 with J2EE support, and it is bundled separately with MQ/Series. IBM?s implementation offers guaranteed delivery of messages.
As you review your applications requirements, you will find many uses for messaging. JMS and IBM?s MQ/Series offer near real-time processing that may better suit your requirements than other Java program-to-program communications facilities. In some industries, it is necessary to extend
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts including news, tips, and advice to help you do your job more efficiently and effectively. Stay informed on the hottest topics and biggest challenges faced by IT professionals working with iSeries products and services.
For details on the JMS API with sample code and detailed instructions visit http://www.java.sun.com/products/jms/.
IBM?s support for JMS may be found at http://www-4.ibm.com/software/ts/mqseries/api/mqjava.html.
-------------------------
About the author: Bob Cancilla is managing director of IGNITe/400, an electronic iSeries 400 Internet users group. He is also author of the book Getting Down to e-business with AS/400
---------------------------------------------------------
FREE EXPERT ADVICE
---------------------------------------------------------
Do you have questions about WebSphere and Web development? Post them in our .26RlaSVDeTg^1@.ee84637>WebSphere/Web Development Discussion Forum. Here you'll get advice from our site experts who monitor the forum, as well as ideas and suggestions from your peers.
You may also read the Web development advice our experts have given in our Ask the Expert section.
This was first published in August 2001