[jboss-dev-forums] [Design of OSGi Integration] - Re: ServiceReferences outside of OSGi Deployers
adrian@jboss.org
do-not-reply at jboss.com
Tue Mar 4 01:04:53 EST 2008
"adrian at jboss.org" wrote :
| 2) What deployment does it belong to?
| This information is sort of there but it is not in the format you want it
| and not public.
|
Actually there's another way you can get this information which is to look at the scope
of the ControllerContext.
If its created through the deployers (otherwise the scope
might not exist), you'll have something like:
| String topLevelDeploymentName = (String) ControllerContext.getScopeInfo().getScopeKey().getScope(CommonLevels.APPLICATION).getQualifier();
|
That's a mouthful :-) - See DefaultScopeBuilder for more info.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133780#4133780
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133780
More information about the jboss-dev-forums
mailing list