Connect to OID using JNDI name?
413914May 19 2005 — edited May 20 2005I would like to connect to OID from a J2EE app deployed on Oracle 9iAS using a JNDI name.
I am currently using datasources in this manner, for example:
Context ic = new InitialContext();
ds = (DataSource) ic.lookup("jdbc/OracleDS");
will return the datasource defined by the JNDI name jdbc/OracleDS.
I would like to access OID in the same way ie bind the OID URL to a JNDI name and then have references in the code use the JNDI name.
I've not been able to find much documentation on this - can anyone help - is it possible?
Thanks
Steve