----- Original Message -----
From: "Imran Bohoran" <[EMAIL PROTECTED]>
To: "Jboss-User (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, October 09, 2001 3:35 AM
Subject: RE: [JBoss-user] Obtaining a Connection object through Session
beans


>
> yes..and this is what i was looking for.
>
>     DataSource datasource;
>     Context c = new InitialContext();
>     datasource = (DataSource)c.lookup("java:/myPool");

For portability, you really should be looking up
'java:comp/env/jdbc/SomePoolName' here, and mapping java:/myPool to that
name in ejb-jar.xml and jboss.xml (see the manual at www.jboss.org for
examples)

danch



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to