java - EJB in a non managed bean -


what best/recommended way pass stateless ejb non managed bean(thread) in java ee application ? i've considered sending reference via constructor far.

as of cdi 1.1 (java ee 7), can use cdi class reference current cdi container.

ejbs exposed cdi beans. so, have reference ejb's local interface:

cdi.current().select(yourejblocalinterface.class).get(); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -