Hi,
I am trying to integrate OSGI and tuscany following info on WIki and
mailing list.
The goal is to have some sort of "OSGI distributed environment"; the
framework would be composed of OSGI runtimes running on several
network nodes with SCA components and composites spanning multiple
nodes exposed as OSGI services.
The best result would be to have OSGI bundles wired to other OSGI
services independently from their location, local or remote. Bundle
lifecycle would be managed by OSGI, while SCA would take care of
remote bindings and of composite assembly (exposed as OSGI services
callable from other bundles everywhere in the domain).
Being quite new to both technologies I am still confused about how
implementing such an integration. From the wiki and mailing list I
guess I understood that 3 different models are proposed:
1) Package tuscany runtime modules and 3rd party dependencies as OSGi
bundles, and use an OSGi runtime such as Felix or Equinox to install/run
these bundles.
2) Package application artifacts into OSGi bundles and contribute them to
SCA domain as SCA contributions
3) Support OSGi bundle as a component implementation type for
Tuscany/SCA,
expose OSGi services as SCA services and inject references to OSGi
services
Could you please help me by answering the following questions?
What would be the best approach for our need?
What would be the "relation/integration" between OSGI and SCA runtime
in the three models?
thanks a lot
Francesco
Adding the issue mentioned in the subject.
osgi-supplychain sample gives a ClassNotFound when the test or client
is started with ds.composite. IS there any suggestion to make it work?
WARNING: Unable to resolve bundle 3 (org.osgi.framework.BundleException:
Unresolved package in bundle 3: package;
(package=org.osgi.service.component))
java.security.PrivilegedActionException:
java.lang.ClassNotFoundException: supplychain.retailer.Retailer
at java.security.AccessController.doPrivileged(Native Method)
thanks