Re: [JBoss-user] Basic question on db connection (JBoss 3)

2002-05-21 Thread David Jencks
There are 2 halves to the jca spec. We use the spi half for everything. For a database we do not use cci but rather jdbc javax.resource.cci.ConnectionFactory replaced by javax.sql.DataSource javax.resource.cci.Connection replaced by java.sql.Connection There are a couple of jca wrappers around

Re: [JBoss-user] Basic question on db connection (JBoss 3)

2002-05-21 Thread Alex Loubyansky
Hello Andre, Tuesday, May 21, 2002, 3:47:57 PM, you wrote: AS> Hi, AS> How I can access a database from a connection ? AS> Looking at the j2ee connector spec I can find the AS> first steps to do this connection are : AS> Context initctx = new InitialContext(); javax.sql.DataSource d

[JBoss-user] Basic question on db connection (JBoss 3)

2002-05-21 Thread Andre Selton
Hi, How I can access a database from a connection ? Looking at the j2ee connector spec I can find the first steps to do this connection are : Context initctx = new InitialContext(); ConnectionFactory cfx = (ConnectionFactory) initctx.lookup("java:/DefaultDS"); javax.resourc