Am trying to retrieve a DataSource object (once it has been bound).
I believe I manage to bind the object successfully - a .bindings file is created in the relevant directory.
However, when I try to retrieve the object (doing a lookup), nothing is returned.
Maybe I'm just oversimplifying things...the MyDataSource class just extends DataSource and doesn't do much else.
Relevant code below:
MyDataSource ds = new MyDataSource()
Hashtable env = new Hashtable();
Context ctx = new InitialContext(env);
// Register the data source to JNDI naming service
// for application to use
// The following call will return null
DataSource new_ds = (DataSource) ctx.lookup(jdbc/Oracle);