users@glassfish.java.net

registering OSGi services in v3

From: <glassfish_at_javadesktop.org>
Date: Tue, 09 Jun 2009 13:47:03 PDT

Hi,

I have read Jerome's excellent blog entry at
http://blogs.sun.com/dochez/entry/glassfish_v3_extensions_part_3 .
Unfortunately, I am not that deep in Spring, so I want to register an OSGi service from an OSGi bundle itself (the bundle contains the implementation).

It is not clear to me how the binding between the @Resource(mappedName="secondService") in the WEBCLIENT and the OSGi service registry is done. I assume that this is what the spring-osgi thing does for you, but it probably comes down to registering the service implementation with a specific property with the OSGi registry?

Thanks,

- Johan
[Message sent by forum member 'johanvos' (johanvos)]

http://forums.java.net/jive/thread.jspa?messageID=350138