Integrate Spring 4 with EJB in legacy system -


tl;dr: how autowire ejb spring @controller??


i'm trying add new spring 4 webapp legacy system uses ejbs, , runs in resin 4. ejbs stateless, , local, , contain:

@resource  sessioncontext ejbcontext 

ejbs looked via singleton contains line:

return new initialcontext().lookup("production/entapp/default/myapplication/" + classname + "/local"); 

i've got no experience of using ejbs other via method, i'm not familiar how lookup performed, ejbs found in manner.

my question: how autowire ejb spring @controller??

i suspect need create interceptor of kind, perform lookup when finds need autowire ejb, having looked through pages , pages of google , so, i'm none wiser.

it's worth mentioning i'm trying of without xml, using java @configuration class.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -