Results 1 to 2 of 2
  1. #1

    Arrow DISTINCT and RAW


    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

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

    <!-- 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) {
    var cold = (key.substring(4) % 2 == 1) ? "#eeeeee" : "#ddddee";
    info.setAttribute("yellow", cold, "backgroundColor");

    var logGridSubscription = new Subscription("RAW","item_1",logDynaGrid .extractFieldList());
    logGridSubscription.setDataAdapter("LOG_ADAPTER_DI S");


  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, 10:07 AM
  2. Replies: 3
    Last Post: July 22nd, 2013, 09:54 AM
  3. Difference between DISTINCT and MERGE mode?
    By hungtt in forum General
    Replies: 1
    Last Post: January 4th, 2011, 12:07 PM
  4. Formatting RAW data: Necessary?
    By Isanderthul in forum Adapter SDKs
    Replies: 5
    Last Post: July 30th, 2009, 11:34 AM
  5. Replies: 6
    Last Post: May 30th, 2007, 11:47 AM


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 06:09 PM.