Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Aug 2009
    Location
    Stamford
    Posts
    3

    No Update on Silverlight Client

    Hi

    I have a Java Client and also have a Silverlight client both listening from the same java adapator. The Java Client works fine and receives all the message where as Silverlight client does not get any update. For sure the Silverligh client is connected to the LightStreamer as it is able to detect when LightStreamer goes down.

    Below is the way i Subscribe

    ************************************************** **********************
    ************************************************** **********************
    Java

    ExtendedTableInfo tableInfo = new ExtendedTableInfo(
    new String[]{"TRADE_INFO"},"DISTINCT",
    new String[]{"MessageType", "Updatedtime", "Ticket", "Tradetype", "Book", "Company", "Instrument", "SettleType", "BuySell", "Term", "Cpty", "TraderInit", "Price", "InputMethod", "Qty", "Location"}, true) {
    {
    setDataAdapter("TRADE_INFO");
    }
    };

    HandyTableListener listener = new HandyTableListener() { all implemented as needed}

    myClient.subscribeTable(tableInfo,listener,false);

    ************************************************** **********************
    ************************************************** **********************
    SilverLight

    ExtendedTableInfo tableInfo = new ExtendedTableInfo(
    new string[] { "TRADE_INFO"},"DISTINCT",
    new string[] { "MessageType","UpdatedTime", "Ticket", "TradeType", "Book", "Company", "Instrument", "SettleType", "BuySell", "Term", "Cpty", "TraderInit", "Price", "InputMethod", "Qty", "Location" },true);

    tableInfo.DataAdapter = "TRADE_INFO";


    TradeInfoListener listener = new TradeInfoListener()
    client.SubscribeTable(tableInfo, listener,false);

    ************************************************** **********************
    ************************************************** **********************

    Adaptor

    <?xml version="1.0"?>
    <adapters_conf id="REALTIME">
    <metadata_provider>
    <adapter_class>
    com.lightstreamer.adapters.metadata.LiteralBasedPr ovider
    </adapter_class>
    <param name="item_family_1"> TRADE_INFO.*</param>
    <param name="modes_for_item_family_1"> DISTINCT</param>
    </metadata_provider>
    <data_provider name="TRADE_INFO">
    <adapter_class>
    tradeInfo.adapters.TradeInfoDataAdapter
    </adapter_class>
    </data_provider>
    </adapters_conf>

    ************************************************** **********************
    ************************************************** **********************

    Please advise what i am doing wrong in the subscription of Silverlight.
    Thanks in advance,

    GJ

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,089
    We can't see issues at first sight, though the TradeInfoListener used in the Silverlight case belongs to your code and it is not expanded.
    Are you testing for exceptions in the SubscribeTable call?

    Anyway, it is probably worth doing the simplest check first, that is, checking the Server log.
    Please, set the priority for the LightstreamerLogger.pump logger to DEBUG in lightstreamer_log_conf.xml, then rerun both cases.
    This will clarify where the problem lies within the subscription lifecycle.

 

 

Similar Threads

  1. New Silverlight Example
    By Alessandro in forum Client SDKs
    Replies: 0
    Last Post: April 15th, 2011, 07:24 PM
  2. Silverlight Client Connection problem in IE
    By kkrisjoy in forum Client SDKs
    Replies: 7
    Last Post: December 17th, 2010, 10:30 AM
  3. Replies: 7
    Last Post: June 21st, 2010, 03:59 PM
  4. How to Get all updated fields in one attempt?
    By indrajit in forum Client SDKs
    Replies: 3
    Last Post: March 3rd, 2008, 09:59 AM
  5. Replies: 1
    Last Post: February 22nd, 2008, 09:39 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:48 AM.