Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2011

    Interference Between Java SE Client and Web Client


    I wasn't sure which forum to use for this question. I hope this one is ok.

    I have a simulated feed pushing updates on several items. I have a Java SE client that subscribes to all of these items, and a web page that subscribes to some of them. Everything including the Lightstreamer is running on one host.

    I can run several copies of the Java program at the same time with expected results.

    I can run several copies of the web page at the same time with expected results. This includes running some in chrome while running others in Firefox.

    If I start the Java program first then the web page doesn't receive any updates.

    If I start the web page first then the Java program only receives updates for the items to which the web page has not subscribed.

    The behavior is consistently reproducible. If necessary I can try to put together the simplest possible test case that demonstrates the problem, but as I am a newbie with Lightstreamer, this will take me several hours, so I though I would ask first whether there is some obvious explanation.



  2. #2
    Join Date
    Jul 2006
    No interference is expected between clients of different types, as Html or Java.
    The difference in the set of subscribed items should be the only significant one from the Server perspective.
    Anyway, no interference is expected between the two clients as well;
    the Server treats all items independently from one another.
    In your tests, what changes is the sequence of "subscribe" and possibly "unsubscribe" invocations to the Data Adapter for the various items;
    you should ensure that the Data Adapter also treats all items independently from one another and that it can handle possible sequences of "subscribe"-"unsubscribe"-"subscribe" invocations for the same item.

    The whole processing of items and updates can be logged if you set the "LightstreamerLogger.subscriptions" and "LightstreamerLogger.pump" loggers at DEBUG level.
    Setting up a minimal test case is useful but not necessary in order to analyze this log.

  3. #3
    Join Date
    Jul 2006
    One possible explanation is that your two clients subscribe to the items in incompatible modes;
    for instance, one in MERGE mode and the other one in DISTINCT mode.
    Please check that; in that case, you should also find suitable messages in the Server log with factory configuration settings.



Similar Threads

  1. Client in C/C++
    By aziz in forum Client SDKs
    Replies: 6
    Last Post: February 21st, 2023, 02:55 PM
  2. where to download Java SE Client jar file
    By joshi_s_p in forum Client SDKs
    Replies: 3
    Last Post: January 4th, 2012, 08:30 AM
  3. Replies: 1
    Last Post: May 21st, 2009, 09:41 AM
  4. Replies: 4
    Last Post: February 4th, 2009, 11:45 PM
  5. Replies: 0
    Last Post: January 10th, 2007, 04:03 PM

Tags for this Thread


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 09:07 AM.