try { InitialContext ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup("jspNedirMysql"); java.sql.Connection jspNedirCon = null; jspNedirCon = ds.getConnection(); }catch(SQLException ex) { setMessage(ex.toString()); }catch(NamingException ex) { setMessage(ex.toString()); }
------------------------------------------------------------ I have tried that and this error have been occured javax.naming.NameNotFoundException: jspNedirMysql not bound please help me. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861575#3861575 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861575 ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user