Hi,
Post to the tomcat-user list, not the tomcat-dev list.  Keeping a
connection with the session is horrible from the scalability
perspective.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Ravindra Gupta [mailto:[EMAIL PROTECTED]
>Sent: Monday, May 24, 2004 4:35 PM
>To: [EMAIL PROTECTED]
>Subject: Session Unbound
>
> 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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to