Servicemix: Accessing the OSGi service from the JBI

Currently the communication between the OSGI and JBI services are not straight forward in the Servicemix (SMX), this blog tries to fill in the gap and explains the use case of accessing the OSGi service in the JBI-SU, deployed on SMX. I have deployed simple OSGi service as:

the class org.example.Hello has one method which print's the current time.

Now i will deploy a SU which will access the OSGi service via JNDI lookup.

There are couple of ways to do it:

1. Firstly via using the tag:

2. You can also use the jndi-lookup tag from the spring-remoting API for example visit


Popular posts from this blog Connection reset

Hide empty last column from Table/Tree Viewer

Spring: implements interface not working in @Controller