-
November 11th, 2010, 11:01 AM
#1
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
-
November 12th, 2010, 09:04 AM
#2
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
-
By Pradeep Chahal in forum Adapter SDKs
Replies: 1
Last Post: April 30th, 2010, 09:00 AM
-
By wmolde in forum Client SDKs
Replies: 5
Last Post: September 24th, 2009, 10:59 AM
-
By CitiMan in forum General
Replies: 13
Last Post: September 22nd, 2009, 04:57 PM
-
By sarbao in forum General
Replies: 1
Last Post: April 16th, 2009, 08:59 AM
-
By aatg in forum Client SDKs
Replies: 3
Last Post: April 20th, 2007, 09: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
-
Forum Rules
All times are GMT +1. The time now is 02:44 PM.
Bookmarks