-
1. Re: Communication between services
ffang Jun 6, 2012 7:56 PM (in response to joatham.perezexposito)Hi,
I'm not sure what you mean by "I want to make the communication between both services through the bus.", could you elaborate?
Btw, for cxf-bc====>cxf-se communication, please take a look at cxf-wsdl-first-osgi-package example shipped with kit.
Freeman
-
2. Re: Communication between services
joatham.perezexposito Jun 7, 2012 3:48 AM (in response to ffang)The communication I want to do is:
se (1) - se (2)
But I can not communicate.
-
3. Re: Communication between services
ffang Jun 7, 2012 4:50 AM (in response to joatham.perezexposito)Hi,
In this case you can use cxfse:proxy which enable you invoke se2 from se1, take a look
at , the "Proxies" part to get more details
http://servicemix.apache.org/servicemix-cxf-se.html
Freeman
-
4. Re: Communication between services
joatham.perezexposito Jun 7, 2012 6:30 AM (in response to ffang)Thank´s,
<cxfse:proxy service="t:BeanService"
type="test.MyServiceImpl" />
</property>
With this code:
My problem is this. If I boot with all the bundle fuse4 get the following error:
10:43:16,656 | ERROR | ExtenderThread-7 | ContextLoaderListener | 91 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext (example-osgi bundle =-cxf-se, config = osgibundle :/ META-INF/spring / *. xml))
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.servicemix.cxfse.CxfSeEndpoint # 0' defined in URL : Can not create inner bean 'test.MyServiceImpl # 0' of type while setting bean property 'pojo'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ...
However, if I make the deployment of parts, it works correctly.
-
5. Re: Communication between services
joatham.perezexposito Jun 7, 2012 6:35 AM (in response to joatham.perezexposito)Both services are implemented in osgi
-
6. Re: Communication between services
ffang Jun 7, 2012 6:40 AM (in response to joatham.perezexposito)Hi,
If test.MyServiceImpl is from another cxf-se bundle, you need import that package in the bundle which invoke test.MyServiceImpl
Freeman
-
7. Re: Communication between services
joatham.perezexposito Jun 7, 2012 7:31 AM (in response to ffang)It is a cxfbc-provider. But I understand that the behavior should be the same.
-
8. Re: Communication between services
joatham.perezexposito Jun 13, 2012 5:32 PM (in response to ffang)Can you communicate a cxfbc-bc with a cxfbc-bc ?
-
9. Re: Communication between services
ffang Jun 13, 2012 7:30 PM (in response to joatham.perezexposito)Hi,
Yeah, the flow looks like
cxfbc consumer===> cxfbc provider
Freeman
-
10. Re: Communication between services
ffang Jun 13, 2012 7:31 PM (in response to joatham.perezexposito)Hi,
Yeah, the flow looks like
cxfbc consumer===> cxfbc provider
Freeman
-
11. Re: Communication between services
joatham.perezexposito Jun 14, 2012 7:20 AM (in response to ffang)And the flow cxfbc-se ==> cxfbc-provider?
-
12. Re: Communication between services
ffang Jun 14, 2012 7:53 AM (in response to joatham.perezexposito)yeah, you can do it as well.
Freeman
-
13. Re: Communication between services
joatham.perezexposito Jun 14, 2012 8:04 AM (in response to ffang)Is there any example?
The only way I've found to communicate cxfbc-se and cxfbc-se is with <osgi:serice ... > and <osgi:reference ...>
Is there any way to do differently?
-
14. Re: Communication between services
ffang Jun 14, 2012 8:42 AM (in response to joatham.perezexposito)Hi,
Yeah, in servicemix-cxf-bc and servicemix-cxf-se codebase, there are lots of tests cover the flows like
cxfbc consumer====>cxfbc provider
cxfse=====>cxfse
cxfbc consumer====>cxfse=====>cxfbc provider
This is just JBI flow, don't need OSGi service get involved at all.
You may need take a close look at those testcases.
When do cxfse===>cxfse
or
cxfse=====>cxfbc provider
Here actually both use Proxies[1], so the proxy could be a proxy of cxfse or a proxy of cxfbc provider.
http://servicemix.apache.org/servicemix-cxf-se.html
Freeman