tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ymaraner <>
Subject global JNDI usage by legacy J2EE 1.4 application
Date Wed, 11 Jul 2012 19:01:02 GMT
I have a legacy J2EE 1.4 application that looks up resources and EJBs using
global JNDI names outside of the "java:" namespace. 

In WebSphere, WebLogic, and JBoss I was able to create JNDI entries for my
EJBs and Resources that looked like "foo/jdbc/BarDatasource" and

The code looks them up like this:
  DataSource datasource = (DataSource) new
InitialContext().lookup("foo/jdbc/BarDatasource"); barBean = (

I know it's ugly, but it's legacy code.

Is this possible in TomEE+ or does all of the legacy code need to change?

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message