users@glassfish.java.net

OSGI declarative services and @Resource issues in 3.1

From: <forums_at_java.net>
Date: Thu, 14 Jul 2011 19:01:41 -0500 (CDT)

 Hi there!

I have done a couple of OSGI bundles that are using declarative services for
dependency injection. I also have a Web App that has a couple of funky
requirements where I had to have a servlet with an "init" method, in this
servlet I am consuming a couple of my declarative services via the @Resource
annotation but, if I do a full service restart the app is startign before my
bundles.

Is there a way to setup the application so it is the last thing it starts
(aka after all bundles in the OSGI container have started). 

Also,  I am being lazy and I have my bundles in the autodeploy folder, I
have not deployed them like I would in production. Could this be my problem?

Thanks!


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