aspose file tools*
The moose likes Servlets and the fly likes If sessions opened in Java, how can it be closed? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "If sessions opened in Java, how can it be closed?" Watch "If sessions opened in Java, how can it be closed?" New topic
Author

If sessions opened in Java, how can it be closed?

Barbara Norway
Ranch Hand

Joined: Sep 30, 2003
Posts: 150
Hello,
If a legacy Java servlet that I inherited opens a session in Oracle via any enduser worldwide with a browser, is there a way for Java to close that connection after a certain amount of time? I feel stupid asking this question as there are probably multiple ways and it would depend on the code but I'm wondering if there is a method I should look into to start? I have been s"solving" the problem inelegantly in Oracle but would like to have it fixed in the actual Java code that's starting the sessions. Any and all help will be very much appreciated. I'll be working through the weekend so if you reply I'll see it. Thanks!!


farmkitty
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Servlets forum...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

Actually, I don't think it is a Servlet session that Barbara is asking about, but an Oracle database session.

This topic is a duplicate of one already asked in the JDBC forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: If sessions opened in Java, how can it be closed?