Juergen.Schumacher
Thu, 13 Mar 2008 07:35:42 -0700
Hi, in the meantime we managed to run our sample by creating a single bundle for all Tuscany modules (and one for the 3rd party stuff) and deploying our composite as a contribution JAR to a org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain by adapting the code from the setup method of itest\osgi-tuscany\test-bundles\src\main\java\supplychain\client\SupplyChainClient.java. I suppose, this is not the recommended way exactly, but it works (-; Just using SCADomain.newInstance() did not work, the sca-contribution.xml is not found then - it is located in the bundle that also contains the BundleActivator that starts the SCADomain, currently. Anyway, this is OK for now.
However, I have another question now. I tried to use <implementation.osgi>
to setup my components instead of <implementation.java>, but it
does not work. This is the error message:
org.apache.tuscany.sca.contribution.service.ContributionResolveException:
Could not locate OSGi bundle tuscany.osgi.sample
at
org.apache.tuscany.sca.implementation.osgi.xml.OSGiImplementationProcessor.resolve(OSGiImplementationProcessor.java:276)
It seems that OSGiImplementationProcessor does not access the OSGi runtime
which was initially started and in which the bundle is installed, but creates
its own one. Is there a way to give Tuscany access to the BundleContext
of my "outer" OSGi runtime? I browsed through some test cases and samples,
but did not find anything that seemed to be usable.
Thanks in advance!
Cheers,
Juergen.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]