Integrating MagooClient with Apache ActiveMQ/CXF(2)

Building Client and Server Components

The Client Application and Processor Service are built using the ant build file which generates the necessary code from WSDL and compiles both generated and implementation code. To launch the build file, cd to the samples/MagooLogisticsApacheCXF_2_0_1 directory under your Apache CXF installation and type ant. The output should look something like the following:

 

 

Starting the ProcessorService

The ProcessorService listens to the demo.process queue and therefore attempts to connect to ActiveMQ on start-up. For this reason it is essential that ActiveMQ is first started before attempting to run the Processor Service. Change to the ActiveMQ install directory and enter bin\activemq – ActiveMQ should start as per the screenshot below:

 

 

Now start the Processor Service by entering ant server from within the samples\SuperLogisticsApacheCXF_2_0_1 directory using ant server:

 

 

Running the Client Application

Now start the Client Application using the client target in the ant build.xml file:

 

 

The Processor Service will output a message confirming that a processPackingSlip message has been received and routed onto the demo.rectify queue:

 

 

We’ll see in the next section how MagooClient can be configured to pick up this message from the demo.rectify queue for editing.

< Previous 1 2 3 4 5 Next >