Results 1 to 5 of 5
  1. #1

    Java SE client source code?

    We are trying to debug some weird connectivity issues with Lightstreamer SE client. We could only find the compiled library, which shows variable names as e.g. "var32" when decompiled.

    I wonder if there is source code available for the client library. I'm not sure why it shouldn't, since the protocol is already publicly available and anyone can implement a client if they want to.

  2. #2
    The main issue being we can't get session ID from the client, so we cannot correlate error messages from the client with logs on the server.

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    I suppose you use library version 2.5.x, because the revised "unified" version 3.0 (available as a final release here, on maven - look for com/lightstreamer/ls-javase-client) does offer a getSessionId method.

    For the old library, we suggest you leveraging the library's own log.
    This log leans on the JDK's java.util.logging service, that you can configure as shown in the conf/logCfg.properties file provided within the SDK.
    Setting "com.lightstreamer.ls_client.session.level" at FINE should be the simplest way to have the session ID logged.

    I confirm that we have plans for releasing the source code of the client libraries; we just need time to organize the operation.
    But this, again, will not involve Java Library version 2.5.x, but only the "unified" version.

  4. #4
    Thanks for you answer.

    I managed to get the sessionId by adding a onSessionStartedExt method to my ConnectionListener.

    Looking forward to the open source date.

  5. #5
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    You are right. Sorry for even forgetting about that later extension to the library interface, which however is still undocumented.
    You must have also discovered that it is enabled by setting the "lightstreamer.extended_session_info" JVM property to any value.
    Since the session ID is no longer considered an implementation aspect, but it is also supplied by the new libraries, this technique for the old library can now be disclosed.

 

 

Similar Threads

  1. Replies: 1
    Last Post: May 21st, 2009, 10:41 AM
  2. Newbe: LightStreamer and WSDL source for Adapter
    By Dr.Dran in forum Adapter SDKs
    Replies: 0
    Last Post: April 27th, 2009, 03:53 PM
  3. Interaction demo source code
    By sarbao in forum General
    Replies: 1
    Last Post: April 16th, 2009, 09:59 AM

Tags for this Thread

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 07:00 PM.