Results 1 to 6 of 6

Hybrid View

  1. #1
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    first of all, about the 1st point, in case you didn't, you should implement the getItems method of your MetaDataProvider to prevent an user to subscribe to another user's item.

    that said, about your problem, it seems to me that you're trying to accomplish a system that receives a list of messages from the server. For such logic you cannot use the MERGE mode as when two updates for the same item are published quickly one after the other it is likely that only he second will reach the client as the first one is MERGEd with the other.
    To publish a list of messages avoiding merge you would use a DISTINCT subscription (eg ChatDemo ). For further details check out the "General Concept.pdf" file (section 3.1) available under LS_HOME/DOCS-SDKs/ in our distribution.

    About why your updates don't reach the client, I see that you use two tables but you subscribe both with the same id (the second parameter of the addTable: instancesAndSecuritiesTable). This way the second addTable make the first table to unsubscribe.
    If that's not the problem, and if possible, we should start taking a look to your server logs. Please set the LightstreamerLogger.push category to log at TRACE level (and keep LightstreamerLogger.requests at INFO level). Then run your client and send us the log

  2. #2
    Senior Member
    Join Date
    Jul 2009
    Location
    sofia
    Posts
    40
    Hi,

    does merge appear if two the messages are different? For example: "message11112" and "message11113"

  3. #3
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    it depends on the time between the generation of the two messages and the frequency of the updates (see setRequestedMaxFrequency and the comment of the <max_delay_millis> and <max_buffer_size> elements in the server configuration file).

  4. #4
    Member
    Join Date
    Jul 2010
    Location
    NY
    Posts
    1
    Hi Friends, I am Cine and I have read your site in a very deep and I would like to appreciate you on this brilliant effort. You have provided some thing so much different that I can't have words for thanks.
    CiNe

  5. #5
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    Dear Cine,

    Thanks for your compliments! We rely on feedback from our users to keep improving.

    Cheers,
    Alessandro

 

 

Similar Threads

  1. How to write my own stock list data adapter with java
    By pradeepgamage in forum General
    Replies: 1
    Last Post: January 9th, 2012, 11:39 AM
  2. data not coming to web client
    By rd2008 in forum Client SDKs
    Replies: 8
    Last Post: February 11th, 2009, 12:13 PM
  3. Flex data adaptor for stock quote?
    By lucab617 in forum Adapter SDKs
    Replies: 5
    Last Post: May 19th, 2008, 03:16 PM
  4. Replies: 4
    Last Post: January 15th, 2008, 09:15 AM

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 04:31 AM.