[jira] Commented: (TUSCANY-610) Initial OSGi support effort

2006-08-17 Thread Joel Hawkins (JIRA)
[ 
http://issues.apache.org/jira/browse/TUSCANY-610?page=comments#action_12428795 
] 

Joel Hawkins commented on TUSCANY-610:
--

Hi Jim,

I think I'll have some cycles to devote to this code shortly - is there 
anything I can do to help with the initial commit? 

Cheers,
Joel 

 Initial OSGi support effort
 ---

 Key: TUSCANY-610
 URL: http://issues.apache.org/jira/browse/TUSCANY-610
 Project: Tuscany
  Issue Type: New Feature
 Environment: Equinox implementation of OSGi
Reporter: Joel Hawkins
 Assigned To: Jim Marino
 Attachments: ClassloaderHook.java, OSGI-SCA.zip


 An initial implementation of an OSGi binding for exposing SCA services as 
 OSGi services.
 An initial implementation of an OSGi implementation for reusing OSGi services 
 as SCA atomic components
 An OSGi-aware bootstrap environment (which can probably be reduced a bit)
 A repackaging of some of the SupplyChain example
 There's one class derived from an  EPL-copyrighted class - I left the EPL 
 copyright intact. 
 The zip contains the samples, the OSGi binding, and a patch for the core. 
 Most of the patch is the OSGi launcher code. I don't think it belongs in the 
 core, but that's where I had it while developing. The only other bit in the 
 patch is a change of two of the Defaultbootstrapper's fields from private to 
 protected.
 Also, some of the OSGi packaging for existing jars (spi, commands, etc) 
 aren't part of the zip. Not sure how you want to deal with the repackaging 
 issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [jira] Commented: (TUSCANY-610) Initial OSGi support effort

2006-08-17 Thread Jim Marino

Hi Joel,

I was working on this yesterday and got sidetracked with some other  
things as well as a machine problem. I'll be back up by tomorrow,  
hopefully with a check in and some things to discuss.


Jim


On Aug 17, 2006, at 2:11 PM, Joel Hawkins (JIRA) wrote:

[ http://issues.apache.org/jira/browse/TUSCANY-610? 
page=comments#action_12428795 ]


Joel Hawkins commented on TUSCANY-610:
--

Hi Jim,

I think I'll have some cycles to devote to this code shortly - is  
there anything I can do to help with the initial commit?


Cheers,
Joel


Initial OSGi support effort
---

Key: TUSCANY-610
URL: http://issues.apache.org/jira/browse/TUSCANY-610
Project: Tuscany
 Issue Type: New Feature
Environment: Equinox implementation of OSGi
   Reporter: Joel Hawkins
Assigned To: Jim Marino
Attachments: ClassloaderHook.java, OSGI-SCA.zip


An initial implementation of an OSGi binding for exposing SCA  
services as OSGi services.
An initial implementation of an OSGi implementation for reusing  
OSGi services as SCA atomic components
An OSGi-aware bootstrap environment (which can probably be reduced  
a bit)

A repackaging of some of the SupplyChain example
There's one class derived from an  EPL-copyrighted class - I left  
the EPL copyright intact.
The zip contains the samples, the OSGi binding, and a patch for  
the core. Most of the patch is the OSGi launcher code. I don't  
think it belongs in the core, but that's where I had it while  
developing. The only other bit in the patch is a change of two of  
the Defaultbootstrapper's fields from private to protected.
Also, some of the OSGi packaging for existing jars (spi, commands,  
etc) aren't part of the zip. Not sure how you want to deal with  
the repackaging issue.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the  
administrators: http://issues.apache.org/jira/secure/ 
Administrators.jspa

-
For more information on JIRA, see: http://www.atlassian.com/ 
software/jira






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [jira] Commented: (TUSCANY-610) Initial OSGi support effort

2006-08-15 Thread Hawkins, Joel
,
 org.omg.CosNaming.NamingContextExtPackage,
 org.omg.CosNaming.NamingContextPackage,
 org.omg.CosTSInteroperation,
 org.omg.CosTSPortability,
 org.omg.CosTransactions,
 org.omg.Dynamic,
 org.omg.DynamicAny,
 org.omg.DynamicAny.DynAnyFactoryPackage,
 org.omg.DynamicAny.DynAnyPackage,
 org.omg.GIOP,
 org.omg.GSSUP,
 org.omg.IIOP,
 org.omg.IOP,
 org.omg.IOP.CodecFactoryPackage,
 org.omg.IOP.CodecPackage,
 org.omg.IOP_N,
 org.omg.IOP_N.CodecFactoryPackage,
 org.omg.IOP_N.CodecPackage,
 org.omg.LifeCycleService,
 org.omg.Messaging,
 org.omg.NRService,
 org.omg.PortableInterceptor,
 org.omg.PortableInterceptor.ORBInitInfoPackage,
 org.omg.SECIOP,
 org.omg.SSLIOP,
 org.omg.Security,
 org.omg.SecurityAdmin,
 org.omg.SecurityLevel1,
 org.omg.SecurityLevel2,
 org.omg.SecurityReplaceable,
 org.omg.TimeBase

I basically took the api and spi code trees and made bundles of them.
This could be done by creating a bundle wrapper around the distribution
jars, too. The external dependencies bundle is just a collection of all
the stuff I needed to get the test running - it's really just for
convenience. The bundle dependency on this bundle in the osgi-core needs
to be turned into a series of package imports before this stuff is real.


That's why none of these were attached to the JIRA - they're still not
fully baked. :-) I hope to get back to this code shortly - getting a
fully build-able example will be top on the priority list.

Cheers,
Joel

 

-Original Message-
From: Nicole Wengatz (JIRA) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 15, 2006 7:03 AM
To: Hawkins, Joel
Subject: [jira] Commented: (TUSCANY-610) Initial OSGi support effort

[
http://issues.apache.org/jira/browse/TUSCANY-610?page=comments#action_12
428097 ] 

Nicole Wengatz commented on TUSCANY-610:


Hi Joel,

are you working with the Tuscany M1 release?

After importing your projects in Eclipse, I have some problems to find
the required classes.
The OSGiBinding class f.e. extends Binding, but  I find only an
interface Binding
(org.apache.tuscany.model.assembly.Binding).

Could you please send me (or link me to) the required classes?

Thanks
Nicole

 Initial OSGi support effort
 ---

 Key: TUSCANY-610
 URL: http://issues.apache.org/jira/browse/TUSCANY-610
 Project: Tuscany
  Issue Type: New Feature
 Environment: Equinox implementation of OSGi
Reporter: Joel Hawkins
 Attachments: ClassloaderHook.java, OSGI-SCA.zip


 An initial implementation of an OSGi binding for exposing SCA services
as OSGi services.
 An initial implementation of an OSGi implementation for reusing OSGi
services as SCA atomic components
 An OSGi-aware bootstrap environment (which can probably be reduced a
bit)
 A repackaging of some of the SupplyChain example
 There's one class derived from an  EPL-copyrighted class - I left the
EPL copyright intact. 
 The zip contains the samples, the OSGi binding, and a patch for the
core. Most of the patch is the OSGi launcher code. I don't think it
belongs in the core, but that's where I had it while developing. The
only other bit in the patch is a change of two of the
Defaultbootstrapper's fields from private to protected.
 Also, some of the OSGi packaging for existing jars (spi, commands,
etc) aren't part of the zip. Not sure how you want to deal with the
repackaging issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira



The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [jira] Commented: (TUSCANY-610) Initial OSGi support effort

2006-08-11 Thread Jim Marino
Thanks a lot Joel. I'm kind of out just checking email once and a  
while until Monday so when I get back I'll commit the patch and we  
can talk some more.


Jim


On Aug 10, 2006, at 1:06 PM, Joel Hawkins (JIRA) wrote:

[ http://issues.apache.org/jira/browse/TUSCANY-610? 
page=comments#action_12427336 ]


Joel Hawkins commented on TUSCANY-610:
--

Hi Thomas.

I'm trying to write up some documentation now. In short, however,  
the code breaks down into 2 parts:


1. The OSGi hosting of the SCA core. This is a bundle that  
bootstraps SCA instances for bundles that have SCA components (scdl  
files). The host makes a distinction between system extension and  
applications. For example, the OSGi binding code that supports  
interacting with the OSGi service framework is packaged as a system  
extension. The samples are packaged as applications.  To me, these  
application instances feel like web apps.


2. The OSGi Services system extension, which in turn has two major  
parts:
   a. An OSGi Service binding, which allows SCA components to be  
exposed as OSGi services.  This is pretty straightforward. The only  
tricky bit (assuming away the intricacies of SCA's wiring) is  
dealing with the need for a ServiceFactory during service  
registration. This is added to the target class using a dynamic  
proxy if required.
   b. An OSGi implementation, which wraps OSGi services as SCA  
components, allowing them to be wire in seamlessly  (once I'm  
done :-) )into SCA applications.  This binding allows the  
specification of a filter for aquiring an appropriate service  
reference, and acts as a service listener to clean up stale  
references. The code currently attempts to rebind the service if  
the service has changed (using the same reference) or gone away  
(using a different reference). Not sure if this is desirable in all  
cases, but it gives good demo. :-)


Please remember this is an 'initial' implementation! There's enough  
code to get my simple scenarios working - but I'm sure there's  
plenty left to do. Also, the recent work that's been checked in to  
have some of the wiring handled by the wire service probably means  
some of this code can go away.


Some of the things I like about the combination of SCA and OSGi is  
that OSGi services provide a really simple and efficient way to  
communicate between SCA applications running in a single OSGi  
instance, and OSGi's bundle isolation characteristics make dealing  
with multiple application deployments much more deterministic.  
From my perspective (having a toe dipped in both worlds), SCA and  
OSGi look really complementary.


I'll also try and package the rest of my eclipse environment so  
that you can get this running. It's mostly bundle-izing the  
required Tuscany jars.










Initial OSGi support effort
---

Key: TUSCANY-610
URL: http://issues.apache.org/jira/browse/TUSCANY-610
Project: Tuscany
 Issue Type: New Feature
Environment: Equinox implementation of OSGi
   Reporter: Joel Hawkins
Attachments: ClassloaderHook.java, OSGI-SCA.zip


An initial implementation of an OSGi binding for exposing SCA  
services as OSGi services.
An initial implementation of an OSGi implementation for reusing  
OSGi services as SCA atomic components
An OSGi-aware bootstrap environment (which can probably be reduced  
a bit)

A repackaging of some of the SupplyChain example
There's one class derived from an  EPL-copyrighted class - I left  
the EPL copyright intact.
The zip contains the samples, the OSGi binding, and a patch for  
the core. Most of the patch is the OSGi launcher code. I don't  
think it belongs in the core, but that's where I had it while  
developing. The only other bit in the patch is a change of two of  
the Defaultbootstrapper's fields from private to protected.
Also, some of the OSGi packaging for existing jars (spi, commands,  
etc) aren't part of the zip. Not sure how you want to deal with  
the repackaging issue.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the  
administrators: http://issues.apache.org/jira/secure/ 
Administrators.jspa

-
For more information on JIRA, see: http://www.atlassian.com/ 
software/jira




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [jira] Commented: (TUSCANY-610) Initial OSGi support effort

2006-08-10 Thread Jim Marino

Hi Thomas,

I think we met at JavaOne briefly...I haven't had a chance to look  
closely at Joel's work yet (just waiting for the removal of the EPL  
licensed class) so I'll let him jump in with more details. I think  
one of the interesting areas is going to be with sharing services  
between the two environments. For example, being able to consume OSGi  
services from within SCA and having SCA able to export services to  
OSGi. Other frameworks like Spring are also building this type of  
bridge so OSGi will potentially allow us to access those as well.


Longer term, I think it would be interesting to see if OSGi and SCA  
services could potentially converge as they share a lot of things in  
common.


Thanks for the offer of help and as soon as Joel replaces the one  
class, we'll check in his patch so we can look at more specifics.


Jim


On Aug 10, 2006, at 7:01 AM, Thomas Watson (JIRA) wrote:

[ http://issues.apache.org/jira/browse/TUSCANY-610? 
page=comments#action_12427224 ]


Thomas Watson commented on TUSCANY-610:
---

Joel,

Is there some more documentation on this work?  I do not know much  
about how SCA works but I would like to see how this fits into the  
OSGi environment.  Can you provide some steps to get this running  
on Equinox?  Any other information on how SCA and OSGi can interact  
with each other would also be interesting to me.


Thanks.  Tom.

P.S.  I'm a developer on the Equinox Framework team.  Please let us  
know if you need any assistence from the Equinox team to advance  
this work (bug fixes, enhancements, questions etc.).



Initial OSGi support effort
---

Key: TUSCANY-610
URL: http://issues.apache.org/jira/browse/TUSCANY-610
Project: Tuscany
 Issue Type: New Feature
Environment: Equinox implementation of OSGi
   Reporter: Joel Hawkins
Attachments: OSGI-SCA.zip


An initial implementation of an OSGi binding for exposing SCA  
services as OSGi services.
An initial implementation of an OSGi implementation for reusing  
OSGi services as SCA atomic components
An OSGi-aware bootstrap environment (which can probably be reduced  
a bit)

A repackaging of some of the SupplyChain example
There's one class derived from an  EPL-copyrighted class - I left  
the EPL copyright intact.
The zip contains the samples, the OSGi binding, and a patch for  
the core. Most of the patch is the OSGi launcher code. I don't  
think it belongs in the core, but that's where I had it while  
developing. The only other bit in the patch is a change of two of  
the Defaultbootstrapper's fields from private to protected.
Also, some of the OSGi packaging for existing jars (spi, commands,  
etc) aren't part of the zip. Not sure how you want to deal with  
the repackaging issue.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the  
administrators: http://issues.apache.org/jira/secure/ 
Administrators.jspa

-
For more information on JIRA, see: http://www.atlassian.com/ 
software/jira




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jira] Commented: (TUSCANY-610) Initial OSGi support effort

2006-08-10 Thread Joel Hawkins (JIRA)
[ 
http://issues.apache.org/jira/browse/TUSCANY-610?page=comments#action_12427336 
] 

Joel Hawkins commented on TUSCANY-610:
--

Hi Thomas. 

I'm trying to write up some documentation now. In short, however, the code 
breaks down into 2 parts:

1. The OSGi hosting of the SCA core. This is a bundle that bootstraps SCA 
instances for bundles that have SCA components (scdl files). The host makes a 
distinction between system extension and applications. For example, the OSGi 
binding code that supports interacting with the OSGi service framework is 
packaged as a system extension. The samples are packaged as applications.  To 
me, these application instances feel like web apps.

2. The OSGi Services system extension, which in turn has two major parts:
   a. An OSGi Service binding, which allows SCA components to be exposed as 
OSGi services.  This is pretty straightforward. The only tricky bit (assuming 
away the intricacies of SCA's wiring) is dealing with the need for a 
ServiceFactory during service registration. This is added to the target class 
using a dynamic proxy if required.
   b. An OSGi implementation, which wraps OSGi services as SCA components, 
allowing them to be wire in seamlessly  (once I'm done :-) )into SCA 
applications.  This binding allows the specification of a filter for aquiring 
an appropriate service reference, and acts as a service listener to clean up 
stale references. The code currently attempts to rebind the service if the 
service has changed (using the same reference) or gone away (using a different 
reference). Not sure if this is desirable in all cases, but it gives good demo. 
:-)

Please remember this is an 'initial' implementation! There's enough code to get 
my simple scenarios working - but I'm sure there's plenty left to do. Also, the 
recent work that's been checked in to have some of the wiring handled by the 
wire service probably means some of this code can go away.

Some of the things I like about the combination of SCA and OSGi is that OSGi 
services provide a really simple and efficient way to communicate between SCA 
applications running in a single OSGi instance, and OSGi's bundle isolation 
characteristics make dealing with multiple application deployments much more 
deterministic. From my perspective (having a toe dipped in both worlds), SCA 
and OSGi look really complementary.  

I'll also try and package the rest of my eclipse environment so that you can 
get this running. It's mostly bundle-izing the required Tuscany jars.








 Initial OSGi support effort
 ---

 Key: TUSCANY-610
 URL: http://issues.apache.org/jira/browse/TUSCANY-610
 Project: Tuscany
  Issue Type: New Feature
 Environment: Equinox implementation of OSGi
Reporter: Joel Hawkins
 Attachments: ClassloaderHook.java, OSGI-SCA.zip


 An initial implementation of an OSGi binding for exposing SCA services as 
 OSGi services.
 An initial implementation of an OSGi implementation for reusing OSGi services 
 as SCA atomic components
 An OSGi-aware bootstrap environment (which can probably be reduced a bit)
 A repackaging of some of the SupplyChain example
 There's one class derived from an  EPL-copyrighted class - I left the EPL 
 copyright intact. 
 The zip contains the samples, the OSGi binding, and a patch for the core. 
 Most of the patch is the OSGi launcher code. I don't think it belongs in the 
 core, but that's where I had it while developing. The only other bit in the 
 patch is a change of two of the Defaultbootstrapper's fields from private to 
 protected.
 Also, some of the OSGi packaging for existing jars (spi, commands, etc) 
 aren't part of the zip. Not sure how you want to deal with the repackaging 
 issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]