users@glassfish.java.net

Re: How to change bundle start level in glassfish 3.1.2 equinox?

From: <forums_at_java.net>
Date: Mon, 11 Mar 2013 02:46:05 -0500 (CDT)

If you are creating a bundle to expose a OSGi Service and a consumer bundle
needs this service to provide specific functionality, then the service bundle
should be started before the consumer bundle. Here we need to change the
start level of bundles. But instead, you can opt for different options. 1.
Don't go for changing start-levels 2. Go for dynamism, means whenever the
service will be available the consumer bundle will use this. 3. In consumer
bundle, you need not code as follows, @Inject @OSGiService(dynamic = true)
HelloService helloService; Here "HelloService" is expose from Service bundle,
and the consumer bundle wants to use it. Here it is coded in dynamic way so
that you need to care for start levels.

--
[Message sent by forum member 'Amit_Kumar_Mondal']
View Post: http://forums.java.net/node/895259