@Clement  its working as expected. 

Now my question is how i can achieve this without changing in component
class?

As i am calling this in pax-exam test so can i instantiate this component in
pax-exam without adding @Instantiate in class?

I am using below class
https://github.com/apache/karaf/blob/master/itests/common/src/main/java/org/apache/karaf/itests/KarafTestSupport.java


and following is my test

@Test
    public void serviceCreationIsWorking()
    {
        MyComponent serviceObject = getOsgiService(MyComponent.class,
30000l);
        System.out.println("getOsgiService=" + serviceObject);
        System.out.println("getOsgiService method=" +
serviceObject.islock());
     }






--
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

Reply via email to