users@glassfish.java.net

Re: OSGI declarative services and @Resource issues in 3.1

From: <forums_at_java.net>
Date: Tue, 26 Jul 2011 09:37:53 -0500 (CDT)

 Thanks Sahoo!

In section 4.9, is this WAR to WAB done when you deploy from the Felix OSGi
Console? 

I am going to try the WAB conversion but I am still thinking that I might run
into the issue of the WAB starting before the bundle and the @Resource will
break. Also I noticed that once @Resource breaks it will never recover, I
have to restart the WAR, and for some reason doing it from asadmin does not
fix it, I need to do it from the console, very weird.

I guess if this happens my best bet is to remove the @Resource and use the
declarative service injection in the WAB. Not sure how that will go... 

If I were to remove the declarative services and use regular OSGI service and
use the CDI @Inject, is that a dynamic call (aka it will perform injection on
every request to the servlet as opposed to a static one like @Resource seems
to be doing?)

Thanks

 

 

 


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