Results 1 to 4 of 4

Hybrid View

  1. #1
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    Hi Bruce,

    Pardon my lack of knowledge on Windows Service implementation, but why can't you simply override the onStart method to implement the initialization of the Lightstreamer code?

    Alessandro

  2. #2
    Member
    Join Date
    Nov 2009
    Location
    Houston
    Posts
    2
    Hi Alessandro,

    Sorry I didn't reply sooner, but I was involved in another project. Anyway I revisited my code and found a solution. When the service is started, I have the main program instantiate the "service" instance. This causes the "OnStart" method to be called, this method in turn instantiates the class I call the "DataAdapterLauncher". This class was the piece I was missing. It has the DataProviderServer instance with the sockets setup and of course it wires up the instance I call "DataAdapter". The DataAdapter instance is implements the LightStreamer logic.

    Now the only piece missing is something to wrap all this together. Since the Lightstreamer must be started "first", then the data adapters I was thinking I could write a service that starts the Lightstreamer service, wait for it to complete, then start the data adapter service.

    Thanks,
    Bruce

 

 

Similar Threads

  1. Web Service Data Adapter ? How can I do ?
    By intelsmart in forum Adapter SDKs
    Replies: 1
    Last Post: April 11th, 2012, 09:03 AM
  2. Replies: 4
    Last Post: February 3rd, 2011, 10:33 AM
  3. How to debug .NET DataAdapter
    By msgiribabu in forum Adapter SDKs
    Replies: 1
    Last Post: January 21st, 2011, 01:38 PM
  4. DataAdapter with XML
    By Irwin in forum Adapter SDKs
    Replies: 11
    Last Post: April 30th, 2010, 08:42 AM
  5. DataAdapter using XML
    By amarin in forum Adapter SDKs
    Replies: 4
    Last Post: August 21st, 2008, 09:23 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 11:17 AM.