You have to set it on the exchange before sending using one of exchange.setService(...) exchange.setInterfaceName(..) exchange.setEndpoint(...) If you want your POJO to be less tied to the target service, you can use a dummy interface name / endpoint and define a service connection on the jbi descriptor of the service assembly. It will redirect any exchange send to the configured interface / endpoint to the real target endpoint.
Cheers, Guillaume Nodet On 3/24/06, Nicolasj <[EMAIL PROTECTED]> wrote: > > Thanks Guillaume for your quick answer. > > effectively it's working great with the setContext method. > > When I create a Message exchange I do not have any route for this message > exchange (which is correct as I've not defined it ;-) > > How could I defined the "destinationService" in my xbean.xml ? > I looked at the "servicemix-jsr181-3.0-SNAPSHOT.xsd" but didn't found any > clue ! > > Thanks, > > Nicolas > -- > View this message in context: > http://www.nabble.com/get-Context-from-Pojo-Webservice-t1335655.html#a3569342 > Sent from the ServiceMix - User forum at Nabble.com. > >
