Maybe JmsProviderEndpointTest test will help you:
http://fisheye6.atlassian.com/browse/~raw,r=689094/servicemix/components/bindings/servicemix-jms/trunk/src/test/java/org/apache/servicemix/jms/JmsProviderEndpointTest.java#r689094
My proposal is watch for changes in exchange status:
--
while (exchange.getStatus() == ExchangeStatus.ACTIVE) {
// wait for othger exchange status - done or error
Thread.currentThread.sleep(100);
}
System.out.println("end! " + exchange.getStatus());
--
Regards,
Luke
ivan-50 wrote:
>
> hi !
>
> In my test (FOO extends SpringTestSupport) I use following:
>
>
> // code
>
> ServiceMixClient client = new DefaultServiceMixClient(jbi);
>
> EndpointResolver tmpER =
> client.createResolverForService(destQname);
> InOnly io = client.createInOnlyExchange(tmpER);
> NormalizedMessage msg = io.getInMessage();
> ...
> client.send(io); // send message async
>
> // end code
>
> Is it possible to get/wait async responce from endpoint (destQname)
> after processing?
>
>
> Thanks,
> Ivan Pryvalov.
>
>
--
View this message in context:
http://www.nabble.com/ServiceMixClient%3A-async-NMR-tp19431564p19432223.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.