users@glassfish.java.net

Re: How to call OSGI service from managed bean?

From: <forums_at_java.net>
Date: Thu, 19 Jan 2012 06:09:15 -0600 (CST)

No, you don't need anything special in beans.xml.

I don't understand what you mean by "What is the proper way to call method
into OSGI bundle?" There is nothing special about calling an OSGi service
injected via CDI. You are trying to use the injected field when the instance
containing the injected field is still under construction, so you are getting
NPE. Try using that injected field from a method that gets called when your
web app is processing a request.

Sahoo


--
[Message sent by forum member 'ss141213']
View Post: http://forums.java.net/node/882760