L.S., >From your other posts, I'm guessing you want to use the client from within a servicemix-bean POJO. If that's the case, you can do:
@Resource private ComponentContext context; to get the ComponentContext injected in your POJO and then use ServiceMixClient client = new ServiceMixClientFacade(context); to build a ServiceMixClient instance using this context. Regards, Gert Vanthienen ------------------------ Open Source SOA: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ 2009/11/15 youhaodeyi <[email protected]>: > > How can I use ServiceMixClient to send message to other service? I found that > there is a DefaultServiceMixClient and its constructor requires a > JBIContainer parameter, how can I specify this parameter? > > thanks. > > Zhao Yi > -- > View this message in context: > http://old.nabble.com/How-can-I-use-ServiceMixClient-to-send-message-to-other-service--tp26355727p26355727.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
