How to use a remote bean in OSGI

use bean-name on your remote bundle to access a remote bean

exposed bundle

the bean you wish to expose

create the bean :

<bean id="mybean/>

expose the bean :

 <osgi:service ref="mybean" interface="com.my.interface"/>

remote bundle

set up a remote reference to use the bean

<osgi:reference id="myref" bean-name="mybean" interface="com.my.interface"/>
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License