Results 1 to 4 of 4
  1. #1

    Question Updating Lightstreamer from 1.x to current -> With Maven?


    Hello,


    I'm updating my java project from the v.1.0.1 to the v.4.2.1...

    First of all, I`ll like to know how is the correct way to update the lib itself.
    Second, is there a "from -> to" list somewhere that could help me with the methods and interfaces implementations?

    Or maybe the same, but from the 1.x to 2.x, that I think is where the massive differences are... It would be helpful!

    Thank you in advance,

    John

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    580
    Hi John,

    Yes you are right, the transition to version 2 has involved a big step forward as the interface offered is completely different to implement the Unified Client API model.
    Over time, almost all client libraries have implemented the Unified model in such a way the same consistent interface and behavior are guaranteed across different client platforms.
    In other words, the same abstractions and internal mechanisms are provided for very different platforms, while respecting the conventions, styles, and best practice of each platform.

    Unfortunately there is no specific guide for migration between the two API models relating to Java/Android client lib, but you could still take a look at the one relating to the JavaScript library (http://blog.lightstreamer.com/2012/0...pt-client.html).
    I am aware that there are big differences between the two libraries but the migration concepts about connecting and converting old tables to the new subscription concept could be still useful.

    But maybe what could be even more effective is to compare our StockList demo in the old and new version. Please refer to this for the old style lib:

    https://github.com/Lightstreamer/Lig...StockFeed.java

    and this for the unified version of the same:

    https://github.com/Lightstreamer/Lig...StockFeed.java

    Please let us know if you need any further clarifications.

    Regards,
    Giuseppe

  3. #3
    Hello Giuseppe,
    Thanks for your answer..

    Actually, I noticed that I haven't been so clear. My project is a Android project. I really needed a full example of how Lightstreamer v.4.2.1 would be implemented in Android.

    I'm using the follow
    implementation 'com.lightstreamer:ls-log-adapter-java:1.0.1'
    implementation 'com.lightstreamer:java-system-out-log:1.0.2'
    implementation 'com.lightstreamer:ls-android-client:4.2.1'


    Thansk again,
    John.

  4. #4
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    580
    Hi John,

    The Java and Android API are very very similar, so the guidelines for the migration from the old model to the unified model are basically the same.

    An example of Android application leveraging the Lightstreamer Android Client (Unified API Version) v. 4.2.x you can refer to is this:

    https://github.com/Lightstreamer/Lig...client-android

    Please also note the tag of the same example compatible with Lightstreamer Android Client API version 1.x (just for comparison):

    https://github.com/Lightstreamer/Lig...e/for-client-1

    Please let us know if you need any further clarifications.

    Regards,
    Giuseppe

 

 

Similar Threads

  1. Replies: 1
    Last Post: June 18th, 2015, 09:33 AM
  2. DDE Server not updating Excel clients
    By HassanShehata in forum Client SDKs
    Replies: 14
    Last Post: January 6th, 2015, 07:43 PM
  3. Maven dependency for adpater?
    By turick in forum General
    Replies: 2
    Last Post: August 14th, 2013, 01:55 PM
  4. Replies: 7
    Last Post: December 13th, 2011, 04:08 PM
  5. web client is not updating , no errors in server console
    By kishorekkk in forum Adapter SDKs
    Replies: 1
    Last Post: April 10th, 2009, 08:33 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 12:48 PM.