Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » Spring OSGi Service Registration Listener
Spring OSGi Service Registration Listener [message #784383] Fri, 27 January 2012 12:51 Go to next message
Flavio Donze is currently offline Flavio DonzeFriend
Messages: 202
Registered: July 2009
Location: Switzerland
Senior Member

I'm using Spring dm to create beans and register them as OSGi services.
I would like to dynamically add service properties.

I found this
but here I have to create an additional bean for every service.

1. is there a way to add properties (e.g. rank) to all services published through an application context. e.g. some listener or "pre publish" hook?

2. is there a way to add properties to specific services?

There is the OsgiServiceRegistrationListener but I think you can't add any additional properties at the register state.

Thanks for any Help!

Organisations- und Prozessdokumentation Software
Qualit├Ąt Management QMS :: Information Management IMS
Re: Spring OSGi Service Registration Listener [message #792252 is a reply to message #784383] Mon, 06 February 2012 19:59 Go to previous message
Costin Leau is currently offline Costin LeauFriend
Messages: 45
Registered: February 2010
# my second retry posting

There's no support for this out of the box but you can create:
1. a bean factory post processor that automatically adds the exporter definitions based on your criteria.
2. a generic exporter that either programatically or through Spring creates the individual service exporters.
Previous Topic:Release of Gemini Management 1.0.0
Next Topic:Gemini blueprint: Spring NamespaceHandler management
Goto Forum:

Current Time: Thu Jun 21 18:36:09 GMT 2018

Powered by FUDForum. Page generated in 0.01852 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top