Prev | Current Page 489 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"

This is what we do by including jcaFlow inside
the flows element. While we configure the JBI container, if we set the
autoEnlistInTransaction flag to true, each time a JBI exchange is sent, it will be
enlisted in the current transaction.
Transactions, Security, Clustering, and JMX
[ 382 ]
Deploy and Run the Sample
Before running any samples in this chapter, if you haven't done it before edit
examples.PROPERTIES (provided along with the code download for this chapter)
and change the paths there to match your development environment.
Now to build the entire sample, it is easier to change directory to the top-level folder
and execute the build.xml file provided there:
cd ch17\01_Transactions\InOnlyAsync
ant
This will build the entire codebase for the transaction demonstration. Now we need
to open another command prompt and start ServiceMix in the embedded mode, as
follows:
cd ch17\01_Transactions\InOnlyAsync
ant run
In case you want to run the test as a JUnit test case, execute the following code:
ant test
At the end of the run, we will attempt to close the JBI container by destroying the
context.


Pages:
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501