-
1. Re: Using connection pool in a class (not ejb, servlet ...)
vijayk Dec 3, 2003 4:38 PM (in response to vijayk)Hi,
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.
-Vijay -
2. Re: Using connection pool in a class (not ejb, servlet ...)
rajaboobalan Dec 4, 2003 2:34 PM (in response to vijayk)Vijay,
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. -
3. Re: Using connection pool in a class (not ejb, servlet ...)
raja05 Dec 5, 2003 12:23 PM (in response to vijayk)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,
-Raj -
4. Re: Using connection pool in a class (not ejb, servlet ...)
anthrope Dec 9, 2003 7:48 PM (in response to vijayk)Sorry,
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?
PN