-
1. Re: DB Connection Problem in JBOSS 3.2
davidjencks Apr 16, 2003 7:56 PM (in response to jcorbin4607)Please show an example of the code that causes this and a bit of stack trace from "closing connection for you". Please indicate which line of code is causing the error to be thrown. Also please show a little of the illegal state trace.
-
2. Re: DB Connection Problem in JBOSS 3.2
sridhargk Aug 13, 2003 12:27 AM (in response to jcorbin4607)I am using JBOSS 3.2 with Tomcat,I am also getting the same problem,I am using stateless session bean for opening the connection
public Connection getConnection()
{
Connection con = null;
javax.sql.DataSource ds = null;
InitialContext ctx=null;
try
{
ctx=new InitialContext();
ds = (javax.sql.DataSource) ctx.lookup("java:/DB2DS");
con = ds.getConnection();
}
catch(Exception ex)
{
debug("PANIC : DataComponent : getConnection - "+ ex);
}
finally
{
ds=null;
ctx=null;
}
return con;
}
i am getting error saying that maximum number of connections to the database...
can anyone please give a solution to this problem -
3. Re: DB Connection Problem in JBOSS 3.2
wisaner Aug 18, 2003 9:24 PM (in response to jcorbin4607)could you write your config xml file and more
code here