Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2010

    Run code at startup


    Is it possible to have Lightstreamer run our own code before starting any adapters?

    We wish to init a range of needed services before initing the adapters.



  2. #2
    Join Date
    Jul 2006
    Only the "init" method of the various adapters was made available for initialization.
    However, the initializations for the configured Adapter Sets are run in parallel.
    So, there is no suitable place to perform a setup operation that has to precede all the various Adapter Sets.

    You should have your adapters collaborate, for instance, by having their "init" methods all synchronize on a common initialization function, which will run only upon the first invocation.

    Otherwise, you can only wrap the whole Server in your own "main" method, which would perform its stuff, then call the Server "main" method.
    In fact, we suggest leaning on the provided launch scripts, but you may launch the Server through a customized script.



Similar Threads

  1. command line arguments passed to the JVM at startup
    By Pradeep Chahal in forum Adapter SDKs
    Replies: 1
    Last Post: April 30th, 2010, 10:00 AM
  2. Tibco sample Code
    By wmolde in forum Client SDKs
    Replies: 5
    Last Post: September 24th, 2009, 11:59 AM
  3. DynaMetapushTable server-side code
    By CitiMan in forum General
    Replies: 13
    Last Post: September 22nd, 2009, 05:57 PM
  4. Interaction demo source code
    By sarbao in forum General
    Replies: 1
    Last Post: April 16th, 2009, 09:59 AM
  5. code migration
    By aatg in forum Client SDKs
    Replies: 3
    Last Post: April 20th, 2007, 10:39 AM


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 06:26 PM.