File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Init & Destroy

 
hammer jan
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone:
when i create a connection in
public void jspInit(){//create conn there.}
and want to close the connection when i close the jsp window, i write it in Destroy:
public void jspDestroy()
{ try{if(conn!=null) conn.close();conn=null;
catch(Exception){}
}
but when i close the window
i found the connection is still alive!

please help how can i close the connection
when i close the jsp explorer window
thanks for any reply
hammer
 
Alex Sack
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rethink what your are asking ...
Hint: a jsp-page has nothing to do with the browser window & vv.
asac
 
hammer jan
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok i change my question :
When the container(VM) will call the jspDestroy method ?
thanks for any reply
hammer
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic