• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

If I Close the Server

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello

take a sever example like IPlanet and my java job is running onto it and it ll take around 30 mins to complete. now in between if somebdy shut down the server then what ll happen to the job processing (surely stops).is thr any way to log an error that processing stops due the shutting off the server.any suggestion
try & try u ll surely win.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In a properly implemented server, a servlet should get a destroy() call when the server is being taken down.
 
sonu arora
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the application running is a simple java program (no servlets), doing some file reading and database transactions. i m using Threads here.
try & try u ll surely win
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm a little puzzled why you mentiones iPlanet in the first place. Is your software running in a server at all?
It is impossible to catch every possible way of stopping an application (think what happens if the power cord is pulled on the computer, for example). However, som of the more common methods of stopping an application do send a signal of some sort to the application, which may prompt code marked as "run on exit" to be executed.
Can you give any more details about what you are running, and how you expect it might be stopped?
 
sonu arora
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Frank
yes my application (some jsp's and simple java classes) is running in IPlanet ,Thread (java class) starts execution after it got the request from a jsp page(user initiation) to execute,and it ll take a lot of time to complete and now during the processing if somebdy shut down the IPlanet , then processing stops.i want to log this activity in a log file. that processing stops due to shutting of server.
try & try u ll surely win
 
reply
    Bookmark Topic Watch Topic
  • New Topic