One more update: I just added the equinox 3.4.2 jars at a temporary maven repo at [A]. Now the node-impl-osgi module pulls in a few jars from there in pom.xml. You don't have to manfully download the equinox distro any more.

Thanks,
Raymond

[A] http://people.apache.org/~rfeng/repo/maven2

--------------------------------------------------
From: "Graham Charters" <[email protected]>
Sent: Wednesday, March 18, 2009 1:54 PM
To: <[email protected]>
Subject: Re: [2.x] Update on RFC 119 implementation with Tuscany/SCA: First prototype is working!

Hi Raymond, that's great news.  I'll try to set some time aside and
give it a go.

Regards, Graham.

2009/3/18 Raymond Feng <[email protected]>:
Hi,

I have made good progress to add OSGi RFC 119 with Tuscany/SCA. The first
prototype is now working!

Here is the scenario I have tested with the following OSGi bundles:

* calculator.dosgi: It contains the CalculatorService
* calculator.dosgi.operations: It contains the AddService, SubtractService,
MultiplyService, and DivideService.

The test case is CalculatorOSGiNodeTestCase [2]. It can be run in three
modes that controlled by the "client" system property:

* server mode (-Dclient=false): Deploy the calculator.dosgi.operations
bundle and expose the AddService, SubtractService, MultiplyService, and
DivideService over RMI using Tuscany binding.rmi.
* client mode (-D client=true): Deploy the calculator.dosgi bundle and
access the AddService, SubtractService, MultiplyService, and DivideService
via SCA proxies from the OSGi service registry using Tuscany binding.rmi.
* client/server mode: Deploy both bundles in the same JVM and run the
calculator with operations over RMI using Tuscany binding.rmi.

Please note: the latest version of the Equinox jars (containing the OSGi DS
support) are not available in maven. I download a copy from [3] and unzip
the jars to test/src/resources/plugins folder before running the tests. I'll
try mvn eclipse:to-maven to generate the maven artifacts and make them
available in a repo.

Thanks,
Raymond

[1]
http://cwiki.apache.org/confluence/display/TUSCANYWIKI/OSGi+RFC+119+Implementation
[2]
http://svn.apache.org/repos/asf/tuscany/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java
[3]
http://download.eclipse.org/equinox/drops/R-3.4.2-200902111700/download.php?dropFile=eclipse-equinox-3.4.2.zip



Reply via email to