Hi Salgar,
I checked the Spring DM document, the publish-context option is for
publishing the application context as the OSGi Service.
Just as what I mentioned in last mail, there is no interface which can
help you get all the information that we need to set up a cxf endpoint.
So please take the consideration of using
<import resource="classpath:META-INF/xxx.xml"/>
if you want to reuse the cxfEndpoint configuration from other bundle
Willem
Salgar, Mehmet (external) wrote:
Hi,
thx for the answer...
That is what I was afraid of....
My next question would be, I know that in ServiceMix bundles are activated with Spring DM and Spring
DM is able to export ist application context if
"<Spring-Context>*;publish-context:=true;create-asynchronously:=false</Spring-Context>"
is in the MANIFEST....
So, theoretically camel can access the other bundles application context and
access cxf:bean:xxx or not....
Is there a programmatical impossiblity in this scenerio or is it just not
implemented..
Thx for the answers...
T-Mobile Deutschland GmbH
Aufsichtsrat: Timotheus Höttges (Vorsitzender)
Geschäftsführung: Dr. Georg Pölzl (Sprecher), Thomas Berlemann, Thomas
Dannenfeldt, Albert Henn,
Dr. Christian P. Illek, Dr. Bruno Jacobfeuerborn, Dr. Dirk Rohweder
Handelsregister: Amtsgericht Bonn, HRB 59 19
Sitz der Gesellschaft: Bonn
WEEE-Reg.-Nr.: DE60800328
-----Ursprüngliche Nachricht-----
Von: Willem Jiang [mailto:[email protected]]
Gesendet: Freitag, 18. September 2009 09:30
An: [email protected]
Betreff: Re: Seperating cxf component and the router componet in ReportIncident
example
Hi,
I don't think it is possiable to export the CxfEndpoint as an OSGi service and
import it in another bundle, because you can't find a interface which can help
you get all the properties of the CxfEndpoint.
I think you can try to include the configuration of CxfEndpoint in your another
bundle's spring configuration file.
Willem
Salgar, Mehmet (external) wrote:
Hi everybody,
I had succesfully deployed the ReportIncident example of camel in
servicemix osgi environment deployed...
Then I start to experiment it by taking routing elements to another
bundle (called router)....
Now when I start the router bundle it is complaining that it is not
able to find the cxf:bean:xxx that is started up at cxf bundle....
Is not possible to reference beans in camel context that are created
in another bundle.
That would be a pity, I was hoping to create routing bundles and use
the versioning advantages of the osgi to be to deploy and switch on
the runtime new versions....
Or is it possible make it work somehow...
Thx for the answers....
T-Mobile Deutschland GmbH
Aufsichtsrat: Timotheus Hottges (Vorsitzender)
Geschaftsfuhrung: Dr. Georg Polzl (Sprecher), Thomas Berlemann, Thomas
Dannenfeldt, Albert Henn, Dr. Christian P. Illek, Dr. Bruno
Jacobfeuerborn, Dr. Dirk Rohweder
Handelsregister: Amtsgericht Bonn, HRB 59 19 Sitz der Gesellschaft:
Bonn
WEEE-Reg.-Nr.: DE60800328