I am trying to send message to the BUS from within the pojo but I keep
getting "Cannot find an instance of the service: <serviceName>". I am using
the soap-binding example from "apache-servicemix-3.0-M2-incubating". My
xbean file is submitted as an attachment, I was hoping I could set the
destination address in the xlm file but seems like adding destinationService
here dpes not do anything so my code in the pojo looks like this
ServiceMixClient client = new ServiceMixClientFacade(this.context);
QName service = new QName("", "RTBBindingComponent");
EndpointResolver resolver = client.createResolverForService(service);
InOut exchange = client.createInOutExchange();
NormalizedMessage inMessage = exchange.createMessage();
inMessage.setProperty("Test","Test");
exchange.setService(service);
client.send(exchange);
What am I missing?
--
View this message in context:
http://www.nabble.com/Accessing-JBI-from-jsr181-pojo-tf2794472s12049.html#a7796146
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.