Results 1 to 9 of 9

Threaded View

  1. #5
    Member
    Join Date
    Mar 2010
    Location
    Madurai
    Posts
    12
    For Client 1, I am getting the following entries in the log. The item that I am subscribing is MW#1#1#1:

    16-Dec-10 17:13:38,218 |TRACE|LightstreamerLogger.preprocessor |SERVER POOLED THREAD 1 |No frequency prefilter for item MW#1#1#1
    16-Dec-10 17:13:38,218 |TRACE|LightstreamerLogger.preprocessor |SERVER POOLED THREAD 1 |Snapshot buffer size for DISTINCT item MW#1#1#1 set to 0
    16-Dec-10 17:13:38,218 |TRACE|LightstreamerLogger.subscriptions|SERVER POOLED THREAD 1 |Subscribing item MW#1#1#1 on BrowserToLSToTWS.DEFAULT
    16-Dec-10 17:13:38,218 |DEBUG|LightstreamerLogger.subscriptions|SERVER POOLED THREAD 1 |Manager: com.lightstreamer.c.fb@bc5596

    For Client 2, I am getting like this:
    16-Dec-10 17:14:54,328 |TRACE|LightstreamerLogger.preprocessor |SNAPSHOT POOLED THREAD 1 |Sending DISTINCT snapshot to session Sc1cd7da17bb316adT1451625 for item MW#1#1#1: Snapshot end signal for item MW#1#1#1 on BrowserToLSToTWS.DEFAULT

    The code that I have written:

    Client Side:
    Code:
    $wnd.pushtable_messages = new $wnd.NonVisualTable(jsonEntries.split(" "), new Array("instancesAndSecurities"), "DISTINCT");
    $wnd.pushtable_messages.setSnapshotRequired(true);
    Server Side:
    1. In Meta data data Adapter

    Code:
    public boolean isSnapshotAvailable(String itemName)
    			throws SubscriptionException {
    		return true;
    	}
    
    public int getDistinctSnapshotLength(String item)
    	{
    		return 1;
    	}
    
    itemEventListener.smartUpdate(itemHandle, data, false);
    3. In Adapter.XML:
    <param name="distinct_snapshot_length">1</param>

    Can you please let me know what I have done wrong?

    Note:

    1. I also tried $wnd.pushtable_messages.setSnapshotRequired(1); This is also not working.
    2. For Data Adapter I have implemented:
    Code:
    public class InstancesAndSecuritiesDataAdapter implements SmartDataProvider 
    {
    }
    3. For Meta Data Adapter I have implemented:
    Code:
    public class ActiveTraderMetaData extends LiteralBasedProvider 
    {
    }
    Attached Files Attached Files

 

 

Similar Threads

  1. Snapshot Processing
    By wwatts in forum Client SDKs
    Replies: 3
    Last Post: October 2nd, 2012, 10:40 AM
  2. How to configure snapshot length?
    By LS_Developer in forum General
    Replies: 3
    Last Post: March 14th, 2012, 02:46 PM
  3. Initial snapshot length
    By patilgkk in forum General
    Replies: 5
    Last Post: August 2nd, 2010, 09:04 AM
  4. Snapshot example
    By patilgkk in forum Adapter SDKs
    Replies: 3
    Last Post: June 3rd, 2010, 10:27 AM
  5. Pre-Processor Snapshot vs DataAdapter Snapshot
    By sukhdev in forum Adapter SDKs
    Replies: 3
    Last Post: August 1st, 2007, 08:44 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 09:49 AM.