There are a few options on the table now:

1) Unzip one of the binary distros from Tuscany into TUSCANY_HOME

2) Use maven dependency plugin to copy project dependencies to TUSCANY_HOME (see the node-launcher-osgi/pom.xml).

PS: If you use our tuscany-maven-osgi-junit plugin, it will create the bundles automatically from the maven dependency list.

3) Rajini recently added a module [1] which will produce a fat jar file which contains all the tuscany and 3rd party bundles on the dependency list. We might be able use it to produce an OSGi-enabled tuscany distro.

[1] https://svn.apache.org/repos/asf/tuscany/java/sca/itest/osgi-tuscany/tuscany-versioned

4) Explore the possibility to use the Eclipse Equinox run/debug profile to launch Tuscany inside OSGi.

We don't have a very good story yet. Any ideas are welcome.

Thanks,
Raymond
--------------------------------------------------
From: "Jean-Sebastien Delfino" <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2008 1:40 PM
To: <[email protected]>
Subject: Re: How to build a Tuscany OSGi environment?

Raymond Feng wrote:
Please see my comments inline.

Thanks,
Raymond

--------------------------------------------------
From: "Jean-Sebastien Delfino" <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2008 10:38 AM
To: <[email protected]>
Subject: How to build a Tuscany OSGi environment?

I'm trying to build a Tuscany environment that includes some of the latest Tuscany OSGi integration.

My use case is that I want Tuscany to bootstrap OSGi for me when I start a Tuscany node, as it'll help the node load different levels of runtime extension and dependency bundles. I want to start with Equinox for now (I'll test with Felix later).

We have both Equinox and Felix. Felix is better tested ATM.


I have some questions:

What Tuscany modules do I need to add to my POM as dependencies?

If you use tuscany-node-launcher-osgi to launch the node, you will need to have dependencies to compile your app (such as sca-api and node-api). The other tuscany and 3rd party runtime jars (bundles) will be discovered from TUSCANY_HOME and TUSCANY_PATH system properties or environment variables.

Right, but before they get found under TUSCANY_HOME, somebody has to put them there... I'm that guy at the moment, trying to copy the JARs under my TUSCANY_HOME, and my question is: which JARs do I need to copy?

--
Jean-Sebastien

Reply via email to