Results 1 to 2 of 2
  1. #1

    Arrow DISTINCT and RAW

    Hi

    I have a simple test HTML client that is trying to subscribing to java Adapter in DISTINCT or RAW mode. Looks like the client is connected but does not subscribe. The same client works well if i subscribe in MERGE mode.

    I am aware that the MERGE and DISTINCT mode clients can not co-exist, so after my MERGE test i restarted my adapter to make sure i don't have any client connected to it in MERGE mode.

    The first line on my java adapter subscribe method is printing out the item that is being subscribed. When subscribe in MERGE mode, i see the line being printed , but on the DISTINCT or RAW mode, i don't see it which makes me believe that i am not subscribed.

    Question is do i need to make any special setting in the Adapter to support DISTINCT or RAW ? i am not sure what i am missing.

    Below is the snippet of client code , Please advise

    <script>
    var hostToUse = "http://localhost:9090"
    define("lsClient",["LightstreamerClient","StatusWidget"],function(LightstreamerClient,StatusWidget) {
    var lsClient = new LightstreamerClient(hostToUse,"ESTREAMER");
    lsClient.connect();
    return lsClient;
    });


    </script>
    <!-- JavaScript code specific of this application -->
    <script type="text/javascript">


    require(["lsClient","Subscription","DynaGrid"], function(lsClient,Subscription,DynaGrid) {

    var logDynaGrid = new DynaGrid("loggrid",true);
    logDynaGrid .setAutoCleanBehavior(true,false);
    logDynaGrid .addListener({
    onVisualUpdate: function(key,info, domNode) {
    if (info == null) {
    //cleaning
    return;
    }
    var cold = (key.substring(4) % 2 == 1) ? "#eeeeee" : "#ddddee";
    info.setAttribute("yellow", cold, "backgroundColor");
    }
    });

    var logGridSubscription = new Subscription("RAW","item_1",logDynaGrid .extractFieldList());
    logGridSubscription.addListener(logDynaGrid);
    logGridSubscription.setDataAdapter("LOG_ADAPTER_DI S");
    logGridSubscription.setRequestedSnapshot("yes");
    lsClient.subscribe(logGridSubscription);
    });


    </script>

  2. #2
    This is resolved, had to fix metadata_provider definition

 

 

Similar Threads

  1. Limited frequency RAW and DISTINCT modes
    By Dejan Milosevic in forum General
    Replies: 1
    Last Post: June 9th, 2014, 11:07 AM
  2. Replies: 3
    Last Post: July 22nd, 2013, 10:54 AM
  3. Difference between DISTINCT and MERGE mode?
    By hungtt in forum General
    Replies: 1
    Last Post: January 4th, 2011, 01:07 PM
  4. Formatting RAW data: Necessary?
    By Isanderthul in forum Adapter SDKs
    Replies: 5
    Last Post: July 30th, 2009, 12:34 PM
  5. Replies: 6
    Last Post: May 30th, 2007, 12:47 PM

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:37 AM.