Top Linux Links You Must Click On


Java Feature — A Generic JMS Listener for Apache Axis 1.x
A needed transport-level handler

Running the Listeners
Install OpenJMS and Axis. Unzip the download.zip into a windows folder named, say, A. Modify the setclasspath.bat to give the correct value for Axis Home and openjms home. Put the server-config.wsdd in your Axis installation's (the axis zone of your web server's webapp) WEB-INF folder if there is none already. If you already have this file then copy the two service element entries in full to the already existing server-config.wsdd. Define three queues in openjms.xml, i.e., one for each Web Service given in jmswebsvcs.xml and one for "replyq," which is the reply queue used by the client. Change the GenericJMSSOAPListenerForAxis code line at the top to specify the full path of your Axis installation's server-config.wsdd file. Compile the source code to create .class files. Put the .class files in folder A with the right package structure. Now start openjms. Go to folder A in the DOS command prompt. Run setclasspath.bat. Then start the JMS listeners using the command java jms.AxisJMSListenersStarter.

Now, to run the test client, open another command prompt window. Go to folder A. Run setclasspath.bat. Use the command java invoker.jms.JMSTestClientRPC to run the JMS RPC client. Then use the command java invoker.jms.JMSTestClientMessageStyle to run the JMS message service client. Make sure that folder A contains the client-config.wsdd and that folder A is first in the class path order.

Summary
This article has introduced a working JMS listener for use with Apache Axis 1.x and has shown how clients can uniquely address Axis Web Services for invocation over JMS and how they invoke them over JMS using a combination of this listener and custom-written JMS transport handlers.

The source code for this solution can be downloaded from the online version of this article at http://java.sys-con.com.

Resources

About Parameswaran Seshan
Parameswaran Seshan is a Senior architect with E-Comm Research Lab, Infosys Technologies Limited, Bangalore, India. He has around 14 years of work experience in the IT industry, involving research, teaching, architecture, and programming. His areas of interest include Process-centric architecture, Intelligent software systems, software architecture, Business Process Management systems, Web services and Java.

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

  Subscribe to our RSS feeds now and receive the next article instantly!
In It? Reprint It! Contact advertising(at)sys-con.com to order your reprints!
ADS BY GOOGLE
Subscribe to the World's Most Powerful Newsletters