Hello, It looks like you didn’t create an instance. Add the @Instance annotation on the class.
Clement > On 17 Jul 2018, at 18:53, imranrazakhan <imranrazak...@gmail.com> wrote: > > i have component like@Component(immediate = true)@Providespublic class > MyComponent implements MyService{@Override public boolean islock() { > > return true; }}when i deploy in karaf with below commandbundle:install -s > mvn:com.my.osgi/mycomponent/0.0.1if i do service:list at karaf console it > shows output like[org.apache.felix.ipojo.Factory] > -------------------------------- component.class = > com.my.osgi.mycomponent component.description = factory > name="com.my.osgi.mycomponent" bundle="77" state="valid" > implementation-class="com.my.osgi.mycomponent" requiredhandlers > list="[org.apache.felix.ipojo:properties, org.apache.felix.ipojo:callback, > org.apache.felix.ipojo:provides, org.apache.felix.ipojo:architect ure]" > > missinghandlers list="[]" provides > specification="com.my.osgi.mycomponent" inherited > interfaces="[com.my.osgi.mycomponent]" superclasses="[]" > component.providedServiceSpecifications = [com.my.osgi.mycomponent] > factory.name = com.my.osgi.mycomponent factory.state = 1 > service.bundleid = 77 service.id = 153 service.pid = > com.my.osgi.mycomponent service.scope = singleton But i am expecting > like below, [com.my.osgi.mycomponent] > ----------------------------------------------------- instance.name = > mycomponent.3c2c91a5-4c28-46c3-a08e-1470192ef353 service.bundleid = 76 > > service.factoryPid = com.my.osgi.mycomponent service.id = 397 > service.pid = com.my.osgi.mycomponent.3c2c91a5-4c28-46c3-a08e-1470192ef353 > > service.scope = bundle What i am doing wrong > > > > -- > Sent from: > http://apache-felix.18485.x6.nabble.com/Apache-Felix-Users-f4833200.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org