-
November 12th, 2009, 04:20 PM
#1
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
-
November 13th, 2009, 11:14 AM
#2
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
-
By Alessandro in forum Client SDKs
Replies: 0
Last Post: April 15th, 2011, 06:24 PM
-
By kkrisjoy in forum Client SDKs
Replies: 7
Last Post: December 17th, 2010, 09:30 AM
-
By emiliob in forum Client SDKs
Replies: 7
Last Post: June 21st, 2010, 02:59 PM
-
By indrajit in forum Client SDKs
Replies: 3
Last Post: March 3rd, 2008, 08:59 AM
-
By indrajit in forum Adapter SDKs
Replies: 1
Last Post: February 22nd, 2008, 08:39 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
-
Forum Rules
All times are GMT +1. The time now is 02:35 AM.
Bookmarks