Skip to main content

@Resource injection of dynamic OSGI services in EE bundle

2 replies [Last post]
cameronr
Offline
Joined: 2006-07-27

I have a query about the dynamic nature of Service proxies injected using @Resource. For example, if the implementing service is updated, or removed, will the proxy automatically use the newer version, or throw an exception if there is no service available?

If the proxy does not deal with this scenario yet - is it safe to assume that it will at some point?

Cheers
Cameron

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Sanjeeb Sahoo

The proxy does not behave the way you described, but that's how it will
eventually behave. Pl. file an RFE against OSGi-JavaEE subcat if you can.

Thanks,
Sahoo

On Friday 25 June 2010 10:56 AM, glassfish@javadesktop.org wrote:
> I have a query about the dynamic nature of Service proxies injected using @Resource. For example, if the implementing service is updated, or removed, will the proxy automatically use the newer version, or throw an exception if there is no service available?
>
> If the proxy does not deal with this scenario yet - is it safe to assume that it will at some point?
>
> Cheers
> Cameron
> [Message sent by forum member 'cameronr']
>
> http://forums.java.net/jive/thread.jspa?messageID=475760
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

cameronr
Offline
Joined: 2006-07-27

Thanks. I have filed an issue (https://glassfish.dev.java.net/issues/show_bug.cgi?id=12391)

Is it possible to provide a custom injection factory with the JaveEE framework? I would be happy to look into this myself but I can't seem to find anyway to hook into the framework that provides the @Resource injection.

Cheers
Cameron