[JBoss-user] [EJB/JBoss] - Re: creating connection pool! please help me!

2005-01-11 Thread [EMAIL PROTECTED]
This question gets repeated often in the forums. People, please refer to the JBoss Wiki for information. Go to the Jboss Web Site and Click on Developer Zone. You will see Wiki and you can get information there also. Ok, this problem is solved by: http://www.jboss.org/wiki/Wiki.jsp?page=Wh

[JBoss-user] [EJB/JBoss] - Re: creating connection pool! please help me!

2005-01-11 Thread repkin
there is an exception 18:02:43,314 INFO [CachedConnectionManager] Closing a connection for you. Please close them yourself: [EMAIL PROTECTED] java.lang.Exception: STACKTRACE what is the reason for that and what I have to do? View the original post : http://www.jboss.org/index.html?module=bb&

[JBoss-user] [EJB/JBoss] - Re: creating connection pool! please help me!

2005-01-11 Thread HariV
The lookup should be DataSource ds = (DataSource)ctx.lookup("java:/jspNedirMysql"); instead of DataSource ds = (DataSource)ctx.lookup("jspNedirMysql"); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861588#3861588 Reply to the post : http://www.jboss.org/

[JBoss-user] [EJB/JBoss] - Re: creating connection pool! please help me!

2005-01-11 Thread repkin
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());