I have 2 problems

1) I am keeping connection into session . My requirement is that i have to release  
this  connection once Session is inactivated/expired .I have given an
implementation where the unbound method of class implementing 
HttpSessionBindingListener  is getting called , but it is called after the session is 
made invalid and since session is already invalidated i can't access Connection Object 
kept into session .

My understanding was that Once a Session is expired , unbound methos is called and 
than only session becomes inactive . This is not happening in Tomcat while in weblogic 
its working correctly ?Any suggestions how to ensure that unbound method gets called 
before Session is invalidated.


2) When i take connection from DataSource , sometimes i am getting following excepting 
when trying to set AutoCommit on DB2 environment

 com.ibm.db2.jcc.c.SqlException: invalid operation: connection closed
 at com.ibm.db2.jcc.c.o.bk(o.java:2708)
 at com.ibm.db2.jcc.c.o.setAutoCommit(o.java:681)

Any suggestions ??


thanks,
ravi




--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to