users@glassfish.java.net

Re: Injecting using osgi-cdi _at_OSGiService doesn't work with nest

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Sat, 24 Dec 2011 22:11:40 +0530

If you have the following in a REST WS:
@Inject @OSGiService Service1 service1;
then service1 is backed by the actual object registered in OSGi service
registry.
Who created the instance of Service1 that got registered in service
registry?
How was that instance created?
Was it not created in a way such that CDI could not inject Service2 into
it?

Thanks,
Sahoo
On Saturday 24 December 2011 09:49 PM, forums_at_java.net wrote:
> Hi Sahoo,
>
> nope, I don't have new in my code.
> Specifically, the starting point is a REST WS which injects Service1
> using
> @Inject @OSGiService.
>
>
> Thanks
>
>
> --
>
> [Message sent by forum member 'Karo']
>
> View Post: http://forums.java.net/node/877196
>
>