gjoseph
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.LiteralBasedProvider
</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
Dario Crivelli
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.pumplogger to DEBUG in lightstreamer_log_conf.xml , then rerun both cases.
This will clarify where the problem lies within the subscription lifecycle.