users@glassfish.java.net

Re: Questions about new OSGI Features

From: Michael Szalay <michael.szalay_at_gmail.com>
Date: Wed, 4 Nov 2009 08:07:04 +0100

Great idea, thanks!


On Wed, Nov 4, 2009 at 1:37 AM, Sahoo <Sahoo_at_sun.com> wrote:

> Jerome Dochez wrote:
>
>>
>> - is it possible to have access to the ejb layer out of an osgi service?
>>>
>>> you can do normal EJB lookup using the InitialContext. What more do you
>> need ?
>>
>> As Jerome said, you can get hold of an InitialContext and lookup an EJB
> and call it. Or, if you register the EJB as a service in the OSGi service
> registry, you can then use it from OSGi like any other OSGi service. Here is
> an example of the same:
>
>
> http://weblogs.java.net/blog/2009/06/16/our-second-hybrid-application-ejb-osgi-service
>
> Thanks,
> Sahoo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>