The class I am tlking about does not exist in the same JVM as JBoss. It runs within Tomcat that uses JBoss' Ejbs. I have no problem looking up EJBs this way. The problem is when I try to obtain a connection. Any help or document is appreciated.
I am NOT sure, if I have understood your problem correctly. Since you have said you need to look up from TOMCAT (running on a different JVM) you will have to register the DATASOURCE with TOMCAT.
You cannot use java:comp/jdbc or java:/ as they all work if the resource accesssing it is in the same VM.
For non-same VM Calls, use the JNDI name of ur datasource directly, like
ds = (Datasource) ctx.lookup("PBOPool")
Assuming PBOPool is the jndiname of ur datasource,
But it appears that DataSource objects defined in JBOSS are not visible to standalone JDBC clients. WebLogic supports this feature, i.e., remote or serializable DataSource objects.
That's what I have discovered after a lot of looking around. Any idea why this is so?