THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
ServiceMixClient client = new RemoteServiceMixClient("tcp://localhost:61616"); |
If you are using Spring, this becomes
Code Block | ||||
---|---|---|---|---|
| ||||
<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.
...