Hi,

My comment inline
On 2010-5-14, at 下午9:30, Aditya Laddha wrote:


Hi All,

I am evaluating the service mix 4.2.

So I tried the following example.
examples\cxf-osgi

To check the performance of calling 2 services I created copy of this
example as
examples\cxf-osgi1

and want to call "cxf-osgi1" from "cxf-osgi"

I tried
ComponentContext context;
DeliveryChannel channel;
to send the InOut message using "channel.sendSync(inOut);"
cxf-osgi expose jaxws:endpoint through osgi http service, so basically it handle incoming request from http transport, so you can't use something like channel.sendSync(inOut)

But I am getting the channel or context as null.

What is the right way of calling the "cxf-osgi" example service from other
service?
How we can get the DeliveryChannel or ComponentContext in "jaxws:endpoint"
service to call the other service?
If you expose jaxws:endpoint through NMR transport, then you can use some NMR client API(I believe it's what you want) to invoke it. For how to expose jaxws:endpoint through NMR transport, take a look at cxf-nmr example we ship with kit. For how to use NMR client API to invoke a nmr endpoint, take a look at nmr/client example we ship with kit.

Freeman

Thanks & Regards,
-Aditya
--
View this message in context: 
http://old.nabble.com/How-to-get-the-DeliveryChannel-or-ComponentContext-in-%22jaxws%3Aendpoint%22-service-to-call-the-other-service--tp28559397p28559397.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.



--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com

Reply via email to