| By Parameswaran Seshan | Article Rating: |
|
| August 24, 2006 10:00 AM EDT | Reads: |
17,464 |
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
- Axis: http://ws.apache.org/axis/java/index.html
- Openjms: http://openjms.sourceforge.net/
- Web Services Description Language (WSDL) 1.1 - March 15, 2001 www.w3.org/TR/2001/NOTE-wsdl-20010315
- JMS: http://java.sun.com/products/jms/
- Some articles on JMS with Axis:
- "Programming JMS Applications using Axis" (IBM developerworks) www-128.ibm.com/developerworks/webservices/library/ws-jms/
- "Axis meets MOM" (javaworld.com) www.javaworld.com/javaworld/jw-02-2006/jw-0220-axis.html
Published August 24, 2006 Reads 17,464
Copyright © 2006 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By 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.
- Kindle 2 vs Nook
- Why IBM’s Server Chief Got Busted
- Is Cloud Computing Like Teenage Sex?
- Industry Experts Discuss the State of Cloud Computing
- Performance Tuning Essentials for Java
- Confessions of a Ulitzer Addict
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- It's the Java vs. C++ Shootout Revisited!
- Cloud Computing Can Revitalize Your Career as Software Developer
- IBM Could "Reinvent" Java: Mills
- Oracle & Cloud Computing: Exclusive Q&A with SVP Richard Sarwal
- A Brief History of Cloud Computing
- Kindle 2 vs Nook
- Cloud CEOs, CTOs & SVPs to Speak at 4th International Cloud Computing Expo
- Why IBM’s Server Chief Got Busted
- Is Cloud Computing Like Teenage Sex?
- Industry Experts Discuss the State of Cloud Computing
- Performance Tuning Essentials for Java
- The Difference Between Web Hosting and Cloud Computing
- Cloud Computing Expo: Exclusive Q&A with Yahoo! SVP Cloud Computing
- Ajax in RichFaces 3.3, JSF 2 and RichFaces 4
- Confessions of a Ulitzer Addict
- My Thoughts on Ulitzer
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- A Cup of AJAX? Nay, Just Regular Java Please
- Java Developer's Journal Exclusive: 2006 "JDJ Editors' Choice" Awards
- The i-Technology Right Stuff
- JavaServer Faces (JSF) vs Struts
- Rich Internet Applications with Adobe Flex 2 and Java
- Java vs C++ "Shootout" Revisited
- Bean-Managed Persistence Using a Proxy List
- Reporting Made Easy with JasperReports and Hibernate
- Creating a Pet Store Application with JavaServer Faces, Spring, and Hibernate
- What's New in Eclipse?
- Why Do 'Cool Kids' Choose Ruby or PHP to Build Websites Instead of Java?
- i-Technology Predictions for 2007: Where's It All Headed?






































