Info |
---|
This page is out of date and should not be used. Please refer to the Qpid JMS client books for up to date documentation. |
Overview
Some example client code is provided to help you get started, using JNDI and JMS.
...
The source code for the example client classes being provided is contained in the example package which can be found in:
https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/java/client/example/
Building the Example source
You can build the example source using Maven by simply typing 'mvn' in the example directory.
Notes on the source package
Note that if you wish to build the example client code from within your IDE you will need to add the following jars contained in the Qpid binary release into your classpath:
No Format |
---|
qpid-client- |
...
<MILESTONE>.jar |
...
qpid-common- |
...
<MILESTONE>.jar |
...
geronimo-jms_1.1_spec-1.0.jar |
At the time of writing , RELEASE is '1.0' and MILESTONE is 'M2-SNAPSHOTM4'.
NB: At runtime, you'll need to put all the jars in the client/lib dir into your classpath along with these jars.
...
Essentially we have provided example client classes to act as a publisher and a subscriber for handling messages using AMQ, as far as possible via JMS.
Contributions to the example classes are most welcome. Please send your classes to dev@qpid.apache.org.
Basic Classes
This section outlines the classes that you're likely to find most useful.
...