• Post Reply Bookmark Topic Watch Topic
  • New Topic

connection on exit

 
Priyadharshini Nagarajan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
steps:
1. make a connection to sybase
2. Executing some sps
3. closing the connection.

i want to know that when my JVM is shutdown after i executed some sps, is the connection still be alive or dangling

[edited subject from 'hi']
[ January 06, 2005: Message edited by: Jeanne Boyarsky ]
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. You have closed the connection. And if you aren't doing that even then after shutting down your JVM, the connection would be closed.

By the way. What 'sps' stands for . Pardon really never heard before.

cheers.
 
Priyadharshini Nagarajan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stored procedures(sp)

after executing my sp the jvm is shutdown. so closing the connection doesnt happen at all.

so i want to know that whether the connection is still there or not
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
O, Ok. I should have understood this 'sp'.
Anyways, if exit(0) then would be closed, else not sure.
Thnaks.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36032
432
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Priyadharshini,
I edited your subject to something more meaningful than 'hi.' In general, meaningful subjects get better/faster responses. They also help people reading posts identify the ones they are interested in.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!