users@glassfish.java.net

Re: Using declared Services in Glassfish v3 prelude

From: Richard S. Hall <heavy_at_ungoverned.org>
Date: Tue, 21 Apr 2009 03:42:15 -0400

On 4/20/09 6:32 PM, Jerome Dochez wrote:
>
> On Apr 20, 2009, at 1:59 PM, glassfish_at_javadesktop.org wrote:
>
>> Hi Jerome,
>>
>> deploying osgi bundles is no problem. I got problems while deploying
>> osgi bundles with declared services
>> (http://felix.apache.org/site/apache-felix-service-component-runtime.html).
>> Important there is that i define an Service-Component entry in
>> Manifest.MF which reference an xml file. This xml file contains my
>> service declaration (like hk2 @Service annotation but an xml file).
>>
>> By the way i deploy my bundles by hand, just copying them into the
>> modules folder.
>>
> if you do that, the bundles are not started automatically which may
> explain why your services are not started.
> not sure what felix supports here in terms of referencing from the
> manifest file, maybe richard can clarify.
>
> try to do the deploy route first, and see if that changes your
> services registration.

There is no issue reading from the manifest. If it works on Felix
normally, it should work in GF. You just have to make sure you have SCR
installed and running.

-> richard

>
>> Best Regards,
>>
>> Andreas
>> [Message sent by forum member 'aluedeke' (aluedeke)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=342931
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>