Juergen,

itests/osgi-tuscany generates Tuscany bundles for testing, and the Tuscany
runtime bundle which contains modules/osgi-runtime uses
org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator as its bundle
activator. This bundle activator sets the bundleContext that
Tuscany(including implementation.osgi) uses as its OSGi runtime. You should
be able to do the same thing in your bundle activator. But OSGi support in
Tuscany has been built and tested only with Apache Felix OSGi runtime. We
started with some basic support for Equinox, but it is not complete at the
moment.



On 3/13/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> 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]
>
>


-- 
Thank you...

Regards,

Rajini

Reply via email to