Hi all... Should it be possible to have a SFSB with an EPC injected entity manager and inject the stateful bean into a stateles bean and use the entity manager from there?
I'm trying to understand the best way of using an extender persistent context entity manager in my app, to avoid LIEs . I think kind of like SEAM, but i don't want to use SEAM.
In other words, can i have an EPC entity manager in one stateful session bean and reuse that single entity manager accross my app, providing it to stateless session bean daos?
btw... I tried what i suggested and i get a NullPointerException right when i execute createQuery on the SFSB's entity manager injected in the stateless bean... The same exact code works fine when executed from within the stateful bean.
So, my question is: should it be possible? and if not, what's the best way of using an EPC and daos?