Urgent: How to detect client connection has closed.

2005-05-31 Thread lapson lee

Hey guys,

I have a problem right now. I wrote a Jsp page to keep sending data to 
client browser. However, no exception was thrown when I use out.print() to 
send something to client even after client has closed his web browser. My 
question is how can i know his browser is closed, so I can stop sending.
Also, from the tomcat logs, the reset by peer socket exception was thrown 
by Tomcat. however, seems i don't have a way to catch it.


Can anybody help me with this one... I will be really thankful to any help 
from you.


Thanks,
Luke

_
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/



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



Connection is Closed

2004-03-29 Thread Rob Wichterman
I keep receiving a Connection is Closed error in my tomcat localhost_log.
After receiving this error I have to restart tomcat to reconnect to oracle.
Is there any type of auto reconnect parameter?

 

Thanks,



RE: Connection is Closed

2004-03-29 Thread Tom K
In your server.xml file if you are using connection pooling you can put
a line in like this:
valuejdbc:mysql://localhost:3306/Classifieds?autoReconnect=true/value




  -- 
- parameter
  nameurl/name 
 
valuejdbc:mysql://localhost:3306/Classifieds?autoReconnect=true/value
 
  /parameter
  /ResourceParams
  /Context
  /Host
  /Engine
  /Service
  /Server

Hope that does the trick.

Tom Kochanowicz



-Original Message-
From: Rob Wichterman [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 29, 2004 7:36 AM
To: 'Tomcat Users List'
Subject: Connection is Closed

I keep receiving a Connection is Closed error in my tomcat
localhost_log.
After receiving this error I have to restart tomcat to reconnect to
oracle.
Is there any type of auto reconnect parameter?

 

Thanks,


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


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



RE: Connection is Closed

2004-03-29 Thread Rob Wichterman
I am connecting to Oracle 9i not MySql.  Sorry I should've mentioned this in
my original message.

Thanks,

-Original Message-
From: Tom K [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 29, 2004 9:14 AM
To: 'Tomcat Users List'
Subject: RE: Connection is Closed

In your server.xml file if you are using connection pooling you can put
a line in like this:
valuejdbc:mysql://localhost:3306/Classifieds?autoReconnect=true/value




  -- 
- parameter
  nameurl/name 
 
valuejdbc:mysql://localhost:3306/Classifieds?autoReconnect=true/value
 
  /parameter
  /ResourceParams
  /Context
  /Host
  /Engine
  /Service
  /Server

Hope that does the trick.

Tom Kochanowicz



-Original Message-
From: Rob Wichterman [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 29, 2004 7:36 AM
To: 'Tomcat Users List'
Subject: Connection is Closed

I keep receiving a Connection is Closed error in my tomcat
localhost_log.
After receiving this error I have to restart tomcat to reconnect to
oracle.
Is there any type of auto reconnect parameter?

 

Thanks,


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


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


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