Prev | Current Page 415 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"

apache.servicemix.components.
util.TraceComponent" />




class="org.apache.activemq.ActiveMQConnectionFactory">



The XPath we configured here is /hello/*. This will split each element inside the
hello element into individual messages.
Deploy and Run the Sample
To build the sample, change directory to ch15\03_XPathSplitter and type ant as
given here:
cd ch15\03_XPathSplitter
ant
This will compile all the files, including the JMS client program. Now to test the
sample, first bring ServiceMix up by executing the following commands:
cd ch15\03_XPathSplitter
%SERVICEMIX_HOME%\bin\servicemix servicemix.xml
Chapter 15
[ 313 ]
Now in a different command prompt execute ant run as shown here:
cd ch15\03_XPathSplitter
ant run
The JMS client program console will print out the messages it sends to the ESB as
shown in the following screenshot:
Now on the ESB-side, the first message will be split into three parts whereas the last
(third) message will be split into two parts.


Pages:
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427