[jboss-user] [Beginners Corner] - Re: Connection Pooling java.sql.Connection?
PeterJ
do-not-reply at jboss.com
Fri Dec 15 17:53:33 EST 2006
Assume that in *-ds.xml I have:
<jndi-name>ds/SomeDS</jndi-name>
then in my code I would look it up using:
InitialContext ctx = new InitialContext();
| DataSource ds = (DataSource)ctx.lookup("java:ds/SomeDS");
| Connection conn = ds.getConnection();
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994365#3994365
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994365
More information about the jboss-user
mailing list