Re: how to use DataSource in stand-alone core java
Posted By:
Christopher_Koenigsberg
Posted On:
Saturday, September 10, 2005 04:39 PM
It depends on the kind of server that your JNDI InitialContext will be coming from. The "java:comp/env/" prefix is used by some JNDI services (like IBM WebSphere) but not by others (e.g. WebLogic uses its own "t3:" instead) ...
I am still confused by all this myself. But anyway, you end up looking up the name "jdbc/firstDSN", in some sort of namespace, and you just have to specify the right namespace for your particular JNDI server.