I have following code:
ServiceMixClient client = null;
DeliveryChannel channel;
ComponentContext context;
if ( client == null ) {
client = new ServiceMixClientFacade(context);
}
Destination
destination=client.createDestination("service:http://servicemix.in2m.com/samples/http/JMSService");
InOnly syncExchange = destination.createInOnlyExchange();
NormalizedMessage request = syncExchange.getInMessage();
request.setContent(exchange.getMessage("in").getContent());
client.sendSync(syncExchange);
client.done(syncExchange);
It gives me NullPointerException at line
InOnly syncExchange = destination.createInOnlyExchange();
I tried printing destination object and it is not null.
Can anybody tell me what is wrong?
Pratibha
--
View this message in context:
http://www.nabble.com/Servicemix-bean-MemoryLeak-tp15891209p17535149.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.