For the seond approach see my recent post "RE: [JBoss-user] Database
Issues -- InterBase (as a datasource)"
^torsten
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Thomas
> Gennburg/FRAN/Carrefour
> Sent: 27. marts 2001 09:26
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Réf. : [JBoss-user] Code to get connection from
> connection pool
>
>
> I can only answer for the first method... (the classic one)
>
> With Jboss Pre 2.1
> ...
> Class.forName("org.opentools.minerva.jdbc.xa.XAPoolDriver")
> Connection conn=DriverManager.getConnection("jdbc:minerva:xa:MyPoolName")
> ..
>
> I think that with JBoss FINAL 2.0 it was
> ...
> Class.forName("org.jboss.minerva.datasource.XAPoolDriver")
> ...
>
> Don't know why it has changed... (http://www.jboss.org/minerva)
>
> Hope it will help...
>
>
>
>
>
> Chris Dole <[EMAIL PROTECTED]>@lists.sourceforge.net on 27/03/2001
> 08:47:52
>
> Veuillez répondre à [EMAIL PROTECTED]
>
> Envoyé par : [EMAIL PROTECTED]
>
>
> Pour : [EMAIL PROTECTED]
> cc :
> Objet : [JBoss-user] Code to get connection from connection pool
>
>
> Hello,
>
> I'm writing a stateless session bean and need to get a connection to my
> connection pool. Does anyone have a code snippet for how to do this?
> Specifically, what is the URL to use in the call to either or both of:
>
> DriverManager.getConnection("jdbc:xxx:yyy:MyPoolName")
>
> or to:
>
> DataSource ds = (DataSource)(new
> InitialContext()).lookup("java:xxx/yyy/zzz/MyPoolName")
>
> Is any one of the above preferable over the other? I know that DataSource
> is newer...
>
> Any help much appreciated!
>
> Thanks,
> Chris
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user