Embedding OpenEJB in a TestCase using javax.ejb.embeddable.EJBContainer.
EJBContainer container = EJBContainer.createEJBContainer();
always returns "null".
How to instantiate the EJBContainer and get the context for looking up EJB 3.0 local stateless session Bean for unit testing?
I would like to get the context from the created container rather than from initial context, how it can be done?
In OpenEJB, the OpenEJB 4.0.0 -beta is found to be supporting java ee embeddable API and with this we can embed the container in our testcase like,
In previous versions of OpenEJB we can't do like this and hence we use "LocalInitialContextFactory" to create the context.