[ 
https://issues.apache.org/jira/browse/TUSCANY-2330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598433#action_12598433
 ] 

Rajini Sivaram commented on TUSCANY-2330:
-----------------------------------------

Graham,

For some reason, I was expecting this to be an itest, but I notice you intended 
it to be a sample. That is good, since we currently dont have a sample which 
runs Tuscany under OSGi. So this module can be a sample as well as a sniff test 
for OSGi-based Tuscany.

However, to enable this to be really used as a sample, it might help if code 
was simplified. Currently it uses the test harness from itest/osgi-tuscany 
which builds test bundles on-the-fly from the classes in the samples 
directories. I feel that is too complicated for use in a sample (yes, that is 
all my fault). 

It would be really nice to have a sample which simply does:
    1. Create an OSGi runtime
    2. Install and start Tuscany OSGi installer bundle
    3. Install and start calculator bundle

and away it goes and runs the calculator sample on Tuscany inside an OSGi 
runtime. Step 2 could be replaced later with whatever mechanism we choose to 
provide for installing Tuscany into OSGi. 

What do you think?  I can help with the code if you like (but it will have to 
wait till the weekend).

PS: Sorry, I should have noticed that you were referring to this as 'sample' 
all along.

- Rajini
    

> 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.

Reply via email to