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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to