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.
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;
ds = (javax.sql.DataSource) ctx.lookup("java:/DB2DS");
con = ds.getConnection();
debug("PANIC : DataComponent : getConnection - "+ ex);
i am getting error saying that maximum number of connections to the database...
can anyone please give a solution to this problem
could you write your config xml file and more