Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Service scope for non-scoped plans
Service scope for non-scoped plans [message #690157] Wed, 29 June 2011 04:57 Go to next message
Raman Gupta is currently offline Raman GuptaFriend
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 #690213 is a reply to message #690157] Wed, 29 June 2011 07:39 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
As described this sounds like a pretty basic bug,so I would ask you to double check the scoping of plan A. After that, if it's still failing, please open a bug and attach a simple testcase which reproduces the problem.
Re: Service scope for non-scoped plans [message #690271 is a reply to message #690213] Wed, 29 June 2011 09:53 Go to previous messageGo to next message
Raman Gupta is currently offline Raman GuptaFriend
Messages: 12
Registered: December 2010
Junior Member
I was unable to replicate this. It works perfectly.
Re: Service scope for non-scoped plans [message #721293 is a reply to message #690271] Thu, 01 September 2011 11:26 Go to previous message
Jack Lynch is currently offline Jack LynchFriend
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 11:26]

Report message to a moderator

Previous Topic:Build of Sample Application GreenPages fails
Next Topic:Note: Spring IDE nightly builds got incompatible
Goto Forum:
  


Current Time: Fri Nov 21 20:40:41 GMT 2014

Powered by FUDForum. Page generated in 0.04125 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software