Versions Compared

Key

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

...

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

If you are using Spring, this becomes

Code Block
xml
xml

<bean id="client" class="org.apache.servicemix.client.RemoteServiceMixClient" init-method="start" destroy-method="shutDown">
  <constructor-arg value="tcp://localhost:61616" />
</bean>

Using ClientFactory

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

...