JBoss Community

Exposing Spring Beans as EJBs

created by Philippe Marschall in Snowdrop - View the full discussion

My understanding is that currently if you want to expose a Spring bean as an EJB you have to implement a wrapper EJB that delegates to the Spring bean (you can use SpringLifecycleInterceptor and @Spring to wire the Spring bean). I was wondering whether it would be possible to use a solution similar to Spring remoting to expose Spring beans as EJBs.

 

<bean class="o.j.StatelessSessionBeanExporter">
    <property name="service" ref="accountService"/>
    <property name="remoteInterface" value="example.AccountService"/>
    <property name="remoteBinding" value="ejb/AccountService"/>
</bean>

Reply to this message by going to Community

Start a new discussion in Snowdrop at Community