| Service scope for non-scoped plans [message #690157] |
Wed, 29 June 2011 00:57  |
Raman Gupta Messages: 12 Registered: December 2010 |
Junior Member |
|
|
I have a non-scoped (global) plan A and a scoped plan B.
Plan A contains a bundle which exposes an OSGi service. This OSGi service is consumed by plan B. I was expecting this to work fine without explicitly declaring the "org.eclipse.virgo.service.scope=global" service property in A, since A is a globally scoped plan.
However, the service was only visible to the bundle in plan B when I explicitly added the "org.eclipse.virgo.service.scope=global" service property in the bundle in plan A.
I am using virgo-jetty 3.0.0.M05.
Is this a bug or the intended behavior?
Cheers,
Raman
|
|
|
|
|
| Re: Service scope for non-scoped plans [message #721293 is a reply to message #690271] |
Thu, 01 September 2011 07:26  |
Jack Lynch Messages: 9 Registered: August 2011 |
Junior Member |
|
|
I've been able to replicate this and then work around it.
Like above I had two plans (both scoped; also failed if one scoped)
Plan A
1 - service interface bundle
2 - service implementation bundle, service published with org.eclipse.virgo.service.scope=global
Plan B
1 - service interface bundle
3 - bundle requring service implementation
Bundles 2,3 import the interface package in 1 in their manifest.
If I uses the plans as above then it fails.
If I remove bundle 1 from both plans then it all works.
Why? I don't know right now..
Regards,
Jack
[Updated on: Thu, 01 September 2011 07:26] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02743 seconds