[jboss-user] [JBoss Portal] - Is there is any default Jndi name to use
paidadilip
do-not-reply at jboss.com
Wed May 7 08:27:33 EDT 2008
javax.naming.InitialContext newInitialContext= new javax.naming.InitialContext();
javax.naming.Context ctx=(Context)newInitialContext.lookup("java:comp/env");
javax.sql.DataSource ds=(javax.sql.DataSource)ctx.lookup("java:MySqlDS");
java.sql.Connection conn=ds.getConnection();
is ther is any default ds to get the connetion ref..
which jndi name I have to use to get the Datasource
regards,
dilip
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149082#4149082
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149082
More information about the jboss-user
mailing list