Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
ServiceMixClient client = new ServiceMixClientFacade(context);

If you want to access a remote ServiceMix instance

If you want to create a ServiceMixClient to access services on a remote ServiceMix instance, you can use the RemoteServiceMixClient. The constructor arguments shown below is the URI for connecting to ServiceMix's embedded ActiveMQ instance. This only works if the remote instance has the JMS Flow enabled.

Code Block

ServiceMixClient client = new RemoteServiceMixClient("tcp://localhost:61616");

Using ClientFactory

Starting from 3.0-M3, you can retrieve a ClientFactory from JNDI.

...