PDA

View Full Version : Query in passing json message from LS server to browser


latha
01-18-2010, 12:31 PM
Hi,
We are using GWT Java Application. Our LS server is continously sending json message to browser. In LS console we can print all the messages. But in the browser not able to receive some messages(got missed out at client side). We are not able to trace out the cause. Can anyone help us for this?


Thanks,
Latha.P

Mone
01-18-2010, 04:27 PM
hi,

do some messages reach the client while others don't?

did you check if the onLostUpdates (http://www.lightstreamer.com/docs/client_web_jsdoc/Table.html#onLostUpdates) callback was fired?

latha
01-19-2010, 11:14 AM
Hi,
Thanks for your reply. Actually we are new to both LS & Java application. So, not able to get you. Are you asking us to check the "onLostUpdates" callback at client side coding?

In GWT, we are using the following methodology to receive the JSON message sent by LS server.

public native void publish() /*-{
$wnd.jsonUpdatedStaticJS = @com.chellasoft.www.client.ChellaSoft::jsonUpdatedStatic(Ljava/lang/String;);
}-*/;

If you don't mind, Can we get the detailed information?

Note: In LS server side(Meta Data Adapter), we are able to print all the messages sent to client. but not at the client side.

Thanks,
Latha.P

Mone
01-19-2010, 12:40 PM
Hi,
Thanks for your reply. Actually we are new to both LS & Java application. So, not able to get you. Are you asking us to check the "onLostUpdates" callback at client side coding?
No, first I want to know if at least one update reaches the client. I want to understand if you're not able to receive data or if you lose only some data. In the latter case, to check the onLostUpdates client-side callback would be the first step.

In GWT, we are using the following methodology to receive the JSON message sent by LS server.
Sorry, I've never played with GWT so I don't know what that means. Please check this thread about GWT, maybe it could help: http://www.lightstreamer.com/vb/showthread.php?t=371

If you don't mind, Can we get the detailed information? what do you mean?

Note: In LS server side(Meta Data Adapter), we are able to print all the messages sent to client. but not at the client side.

please edit Lightstreamer log configuration, setting the LightstreamerLogger.push category's level to DEBUG. This will show you what exits from the server.


HTH

latha
01-20-2010, 08:58 AM
Hi,
Thanks a lot...


Regards,
Latha.P

Mone
01-20-2010, 10:03 AM
so, is your problem solved?

robinbolt
12-07-2010, 10:26 AM
well if you face any more problem you can google it and you will find a solution in top 3 websites i did the same and now i am enjoying its all set :)