Results 1 to 3 of 3

Hybrid View

  1. #1
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    Hi,

    Since your goal is to "do some action before the termination of the lightsreamer", I will answer to a slightly different question, that is:
    "Is there anyway to detect if the lightstreamer service is about to terminate (obviously in case of a graceful shutdown)"?
    The Server does not provide a callback to notify this; it just logs "Server shutdown requested".
    We lean on the JVM support for the "shutdown hooks".
    More details in this thread.

  2. #2
    Senior Member
    Join Date
    Dec 2019
    Posts
    66
    Thanks Dario

    I have already implemented it using :

    Runtime.getRuntime().addShutdownHook

    thanks

 

 

Similar Threads

  1. Replies: 0
    Last Post: December 29th, 2019, 11:56 AM
  2. Replies: 3
    Last Post: September 25th, 2013, 09:24 AM
  3. Replies: 1
    Last Post: April 23rd, 2013, 09:27 AM
  4. Replies: 3
    Last Post: November 14th, 2011, 09:33 AM
  5. Replies: 1
    Last Post: February 1st, 2008, 01:52 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 12:48 PM.