Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2010
    Location
    Odense
    Posts
    4

    Run code at startup

    Hi,

    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.

    Cheers,

    Martin

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    973
    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 APIs
    Replies: 1
    Last Post: April 30th, 2010, 09:00 AM
  2. Tibco sample Code
    By wmolde in forum Client APIs
    Replies: 5
    Last Post: September 24th, 2009, 10:59 AM
  3. DynaMetapushTable server-side code
    By CitiMan in forum General
    Replies: 13
    Last Post: September 22nd, 2009, 04:57 PM
  4. Interaction demo source code
    By sarbao in forum General
    Replies: 1
    Last Post: April 16th, 2009, 08:59 AM
  5. ASP.net code migration
    By aatg in forum Client APIs
    Replies: 3
    Last Post: April 20th, 2007, 09:39 AM

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