OpenEJB

Wednesday April 29, 2009

Lookups into the openejb namespace

To ease the burden in looking up things from OpenEJB's internal JNDI tree, we've added a new "openejb" JNDI URL prefix which can be used in any context to do lookups.

The following will work in a TestCase or EJB or any code running in the same VM as the EJB Container.

InitialContext context = new InitialContext();

TransactionManager tm = (TransactionManager) context.lookup("openejb:TransactionManager");
DataSource dataSource = (DataSource) context.lookup("openejb:Resource/MyDataSource");

Comments:

Good :)))

Posted by statovdere1971 on July 18, 2019 at 12:50 PM EDT #

Wow, this is so incredible!

Posted by cipro on July 19, 2019 at 12:06 PM EDT #

I am glad to see that now you have added the URL prefix in their software in the open JNDI. This is really very beneficial as they have it helped to better use http://teacherhabits.com/10-things-every-new-teacher-should-know/ fast because it used to take a lot of time without this URL.

Posted by Henry on August 24, 2019 at 05:10 AM EDT #

Post a Comment:
Comments are closed for this entry.

Calendar

Search

Hot Blogs (today's hits)

Tag Cloud

Categories

Feeds

Links

Navigation