Results 1 to 9 of 9

Hybrid View

  1. #1
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Hi Klaus,

    thank you very much for your feedback!

    At first sight your project would seem ok, but when cloned and launched from my machine I can't see any real time update coming from the remote server. It may be a symptom that something has gone wrong in the subscription phase, so I ask you to check it with your service provider and then get back to us to go on with our investigation.

    Regards,
    Gianluca

  2. #2
    Hi Gianluca

    The service provider didn't document which mode I should use when subscribing to their Orders stream, I found a forum entry that said I could use DISTINCT, or RAW, and unlucky as I was I picked DISTINCT.
    Strangely enough DISTINCT worked about 80% of the time with LS5 and LS6-b2, but not the final LS6. After I got a running example from the service provider I noticed that they used RAW, and after I made that adjustment it worked fine.
    I'm a little puzzled about the 20% periodic failure rate, but I'm thinking it's related to some implementation detail in the service provider, and they probably never tested it or planed it to work with DISTINCT mode.

    Thanks again, for taking time to look at this.

    /Klaus

  3. #3
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi Klaus,

    I confirm that you should always be aware of which mode to use in your subscriptions on the client.

    Indeed, at the server side, the Metadata Adapter should always define the subscription methods permitted for each Item through a proper implementation of the isModeAllowed method.
    If this is not done, or are admitted for the same Item two conflicting modes, we could have unpredictable behavior.

    For example if a client subscribe an Item in MERGE mode and a subsequent client requesting the same Item in DISTINCT mode, this will be eventually refused by Lightstreamer server.
    But, if we invert the temporal order of the two clients, only the DISTINCT subscriptions will work.

    Regards,
    Giuseppe

 

 

Similar Threads

  1. Java import - package does not exist
    By UweF in forum General
    Replies: 4
    Last Post: March 2nd, 2016, 05:58 AM
  2. Replies: 6
    Last Post: March 4th, 2014, 11:38 AM
  3. IE 6.0 options that can stop streaming
    By Waddy in forum Client SDKs
    Replies: 3
    Last Post: January 10th, 2011, 06:17 AM
  4. Memory leak on Firefox only
    By riwang in forum Client SDKs
    Replies: 10
    Last Post: July 27th, 2009, 11:13 AM
  5. subscribe to items not using threads
    By nagakumaran in forum Adapter SDKs
    Replies: 6
    Last Post: October 16th, 2007, 02:11 PM

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 11:53 PM.