users@glassfish.java.net

Re: OSGI declarative services and _at_Resource issues in 3.1

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Fri, 15 Jul 2011 09:47:07 +0530

In fact, GlassFish also supports WAR to WAB conversion as documented in
section 4.9 of that doc.

Sahoo
On Friday 15 July 2011 06:25 AM, Sahoo wrote:
> Just turn your Web App to a bundle; it's very simple. Add necessary
> OSGi metadata and drop it in autodeploy/bundles/ along with other OSGi
> bundles. More info available at
>
> http://glassfish.java.net/public/GF-OSGi-Features.pdf
>
> Sahoo
>
> On Friday 15 July 2011 05:31 AM, forums_at_java.net wrote:
>> 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/822383
>>
>>
>