Hello all...
JBoss 2.4.4
I have changed the DefaultDS entries in jboss.jcml and the jaws mapping file to use MySQL. It all seems to be working find as I have deployed and used several CMP entity beans.
The problem I have is getting a reference to the Datasource connection pool through JNDI.
I can use the MBean JNDIView and see:
java: Namespace
....
+- DefaultDS (class:org.jboss.pool.jdbc.xa.XAPoolDataSource)
....
So the MBean can see it and my CMP beans use it.
However from within client code:
Context ctx = new InitialContext(props);
ctx = (Context)ctx.lookup("java:");
is an empty context and therefore
DataSource ds = (DataSource)ctx.lookup("java:/DefaultDS");
does not work...
Help... what am I doing wrong here?? I want to be able to use the DataSource from my session beans and other clients.
Thanks,
John