0 Replies Latest reply on Oct 31, 2011 5:31 AM by Philippe Marschall

    Exposing Spring Beans as EJBs

    Philippe Marschall Expert

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