global jndi context (java:global) is injectable with @AppResource Context ctx;
otherwise you can redo a new InitialContext normally *Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/5/27 AndreasN <[email protected]> > Hi, > > I have a specific ApplicationComposer setup for Unit tests and get access > to > my EJBs via injection. So far, so good... > > Using Hibernate, it confirms the situation: > [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name > configured > > Now I would like to have the binding of the JNDI interface to the existing > Sessionfactory for other test cases. > > I know the regular setup is done in the @Configuration method: > > InitialContext initialContext = new InitialContext(p); > > I can't use this because of the persistence unit and the EJB jars loaded > before and the object can't be double-bounded. How can I get access to the > initialcontext? > > > > Kind regards, > Andreas > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/How-to-create-JNDI-interface-in-Application-Composer-later-tp4663243.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
