You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by kusandriadi <ka...@gmail.com> on 2013/03/04 07:26:31 UTC

problem with same cxf address endpoint in different bundle

I used servicemix 4.5 which use apache karaf as osgi container...

for example, i have 2 bundle, we can called as :
1. service-accept
2. service-reject

both of them using CXF and have routebuilder that contains cxf endpoint.
something like this :


I have successfuly install "service-accept", then the REST url are work. but
when I install "service reject", the REST url in "service-accept" doesnt
work while REST url in "service-reject" is work.

in this case i didnt get any error, I know it was because we couldnt have
same endpoint address in 1 container.

but, Anybody have idea to solved this issue?



--
View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-same-cxf-address-endpoint-in-different-bundle-tp5716015.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: problem with same cxf address endpoint in different bundle

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

You really should use http-osgi transport in OSGi container, that said, your cxf endpoint address should be relative address, but not the http://...
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋

On 2013-3-4, at 下午2:57, kusandriadi wrote:

> sorry i am forget to put configuration file....
> 
> here is the cxf endpoint :
> 
> 
> 
> my needs is both of bundle that i describe in the first post will use same
> address "http://0.0.0.0:8088".
> 
> here is the camel context :
> 
> 
> 
> 
> 
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-same-cxf-address-endpoint-in-different-bundle-tp5716015p5716017.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: problem with same cxf address endpoint in different bundle

Posted by kusandriadi <ka...@gmail.com>.
sorry i am forget to put configuration file....

here is the cxf endpoint :



my needs is both of bundle that i describe in the first post will use same
address "http://0.0.0.0:8088".

here is the camel context :





--
View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-same-cxf-address-endpoint-in-different-bundle-tp5716015p5716017.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: problem with same cxf address endpoint in different bundle

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

What's the endpoint address looks like?

If you can post whole camel configuration file, it would be more helpful
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋

On 2013-3-4, at 下午2:26, kusandriadi wrote:

> I used servicemix 4.5 which use apache karaf as osgi container...
> 
> for example, i have 2 bundle, we can called as :
> 1. service-accept
> 2. service-reject
> 
> both of them using CXF and have routebuilder that contains cxf endpoint.
> something like this :
> 
> 
> I have successfuly install "service-accept", then the REST url are work. but
> when I install "service reject", the REST url in "service-accept" doesnt
> work while REST url in "service-reject" is work.
> 
> in this case i didnt get any error, I know it was because we couldnt have
> same endpoint address in 1 container.
> 
> but, Anybody have idea to solved this issue?
> 
> 
> 
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-same-cxf-address-endpoint-in-different-bundle-tp5716015.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.