[ https://issues.apache.org/jira/browse/TUSCANY-2330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598635#action_12598635 ]
Rajini Sivaram commented on TUSCANY-2330: ----------------------------------------- Graham, I tried out the test (listed below), using your patch, and it seems to work fine. So if you want, I can check in this code, along with the rest of your patch tonight, and you can continue from there. If this is going to be a sample, I think it should use Felix rather than Equinox to avoid both Felix and Equinox being added to the Tuscany distribution (depending on the order in which they appear in tuscany-sca-manifest.jar file, they can result in conflicts when running Tuscany outside OSGi). The test that I ran looks like: public class CalculatorTestCase { private BundleContext bundleContext; @Before public void setUp() throws Exception { String[] equinoxArgs = new String[] {"-clean", "-console", "-configuration", "target/configuration"}; bundleContext = EclipseStarter.startup(equinoxArgs, null); } @After public void tearDown() throws Exception { if (bundleContext != null) { bundleContext.getBundle().stop(); } } @Test public void runCalculator() throws Exception { Bundle tuscanyInstallerBundle = bundleContext.installBundle("file:../tuscany-osgi-installer/target/tuscany-sca-osgi-installer.jar"); tuscanyInstallerBundle.start(); Bundle calculatorBundle = bundleContext.installBundle("file:../calculator/target/sample-calculator-bundle.jar"); calculatorBundle.start(); } } > Calculator sample running in OSGi > --------------------------------- > > Key: TUSCANY-2330 > URL: https://issues.apache.org/jira/browse/TUSCANY-2330 > Project: Tuscany > Issue Type: Wish > Components: Java SCA Samples > Affects Versions: Java-SCA-Next > Environment: All > Reporter: Graham Charters > Fix For: Java-SCA-Next > > Attachments: calculator-osgi-sample.patch > > Original Estimate: 2h > Remaining Estimate: 2h > > It would help with preserving OSGi support if an OSGi sample were run as a > matter of course, rather than only by a small number of developers. This > wish is to add the smallest sample possible based on existing Tuscany module > dependencies. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.