Prev | Current Page 485 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"

url is service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi.
These are the default settings for ServiceMix version 3.x. For version 2.x, jmx.url
changes to service:jmx:rmi:///jndi/rmi://localhost:1099/defaultJBIJMX.
Once ServiceMix is up and running, then you can use any JMX compatible console
tools to connect to the ServiceMix container. We will demonstrate this later in
this chapter.
Sample Demonstrating Transaction
In this section we will demonstrate configuring transactions for a message exchange
in an asynchronous pattern.
Transactions, Security, Clustering, and JMX
[ 378 ]
Sample Use Case
In the sample scenario to demonstrate transactions, we will configure
DefaultServiceMixClient within the JBI container as the client or consumer for
the JBI bus. We will first start a transaction and then ask DefaultServiceMixClient
to send an InOnly message exchange to the JBI bus. We will use "send" here so
that the act of sending the message will be enlisted in the current transaction, but
the processing of the message exchange will be deferred and handled in a
separate thread.
We will have a servicemix-jms component configured in the provider role to
which the DefaultServiceMixClient can target message exchange.


Pages:
473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497