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] =?iso-8859-2?q?R=E9f=2E_=3A_[JBoss-user]_Code_to_get_connection_from?=connection pool
Thomas Gennburg/FRAN/Carrefour Mon, 26 Mar 2001 23:16:40 -0800
- [JBoss-user] RE: [JBoss-user] R?f. : [JBoss... Thomas Gennburg/FRAN/Carrefour
- [JBoss-user] RE: [JBoss-user] R?f. : [... Torsten Terp