A step-by-step explanation of a very simple Lightstreamer Data Adapter, based on both C# and VB .NET, is available from Comet Daily:
http://www.lightstreamer.com/r/hello-dotnet-cometdaily
Printable View
A step-by-step explanation of a very simple Lightstreamer Data Adapter, based on both C# and VB .NET, is available from Comet Daily:
http://www.lightstreamer.com/r/hello-dotnet-cometdaily
I have followed the instructions to implement that example. I di not create the one for Java. After I have finished C# example I tried to run it. It did not work and I tried LS stock example that did not work either. Here is my log:
29-May-08 10:46:08,648 |INFO |LightstreamerLogger.license |main |Starting MAC address check
29-May-08 10:46:08,742 |INFO |LightstreamerLogger.license |main |Found MAC address 00:19:d1:2e:c1:32
29-May-08 10:46:08,742 |INFO |LightstreamerLogger.license |main |MAC address check successful
29-May-08 10:46:08,742 |INFO |LightstreamerLogger.license |main |License correctly bound with the following parameter(s):
29-May-08 10:46:08,742 |INFO |LightstreamerLogger.license |main | Client ID : EwxSlueci0PURc1noNMWL
29-May-08 10:46:08,742 |INFO |LightstreamerLogger.license |main | Mac Address : 00:19:d1:2e:c1:32
29-May-08 10:46:09,039 |INFO |LightstreamerLogger.init |main |Lightstreamer Server starting in Moderato edition
29-May-08 10:46:09,133 |WARN |LightstreamerLogger.monitoring |main |JMX management features not available with the current license
29-May-08 10:46:09,195 |INFO |LightstreamerLogger.init |main |Started HTML Adaptor for JMX on port 6666
29-May-08 10:46:09,305 |INFO |LightstreamerLogger.init |main |Started JMXMP Connector for JMX on port 9999
29-May-08 10:46:09,336 |WARN |LightstreamerLogger.init |main |No users defined for Internal Monitor.
29-May-08 10:46:09,367 |INFO |LightstreamerLogger.init |main |Loading Metadata Provider PROXY_HELLOWORLD
29-May-08 10:46:09,367 |INFO |LightstreamerLogger.init |main |Loading Data Provider PROXY_HELLOWORLD
29-May-08 10:46:09,398 |INFO |.remote.transport.SocketTransport|main |Connecting...
29-May-08 10:55:18,595 |INFO |LightstreamerLogger.init |Thread-8 |Server shutdown requested
29-May-08 10:55:18,595 |INFO |LightstreamerLogger.init |Thread-8 |Exiting.....
29-May-08 10:55:48,116 |INFO |LightstreamerLogger.license |main |Starting MAC address check
29-May-08 10:55:48,147 |INFO |LightstreamerLogger.license |main |Found MAC address 00:19:d1:2e:c1:32
29-May-08 10:55:48,147 |INFO |LightstreamerLogger.license |main |MAC address check successful
29-May-08 10:55:48,147 |INFO |LightstreamerLogger.license |main |License correctly bound with the following parameter(s):
29-May-08 10:55:48,147 |INFO |LightstreamerLogger.license |main | Client ID : EwxSlueci0PURc1noNMWL
29-May-08 10:55:48,147 |INFO |LightstreamerLogger.license |main | Mac Address : 00:19:d1:2e:c1:32
29-May-08 10:55:48,335 |INFO |LightstreamerLogger.init |main |Lightstreamer Server starting in Moderato edition
29-May-08 10:55:48,397 |WARN |LightstreamerLogger.monitoring |main |JMX management features not available with the current license
29-May-08 10:55:48,444 |INFO |LightstreamerLogger.init |main |Started HTML Adaptor for JMX on port 6666
29-May-08 10:55:48,522 |INFO |LightstreamerLogger.init |main |Started JMXMP Connector for JMX on port 9999
29-May-08 10:55:48,553 |WARN |LightstreamerLogger.init |main |No users defined for Internal Monitor.
29-May-08 10:55:48,569 |INFO |LightstreamerLogger.init |main |Loading Metadata Provider PROXY_HELLOWORLD
29-May-08 10:55:48,569 |INFO |LightstreamerLogger.init |main |Loading Data Provider PROXY_HELLOWORLD
29-May-08 10:55:48,600 |INFO |.remote.transport.SocketTransport|main |Connecting...
not sure if LS server is running. Can you help, please?
The log shown is produced by the Server, configured for interoperation with the remote part of the Hello World adapter, at startup.
After launching the adapter_csharp.exe module, the two should connect with each other. What do you observe on the adapter_csharp.exe console?
Note that, with this configuration, as long as the Server has not connected with the Remote Adapter, it is not initialized and the StockListDemo cannot work too.
Yes, I got it working, thanks.
Now, I see that a time is changed every two seconds. Does that mean that the data is pushed every two seconds?
Nevermind, I got it.