• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Control service shutdown sequence  RSS feed

 
vivekkumar sharma
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running three java applications say A,B,C as windows services with A having dependency on B and B having dependency on C.

Which means when you start A, It shall automatically start service B and C (Java programs running). And also when you stop C ,it shall stop first B and then A.

Problem I am facing is when you stop C, windows first stop A then B.

I am able to register java applications as windows services with dependency but problem is when u stop service, Windows send signal to all the dependent services to stop and thus I am not able to control order in which services stop

Help is appreciated
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems to be more of a Windows issue than a Java issue, so I'm moving this thread to "General Computing".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!