-
December 23rd, 2009, 10:00 AM
#1
Hello World Remote Socket Adapter
Hello everyone
I'm very very new to LS
I tested the example with remote adapter from the website: http://cometdaily.com/2008/07/29/hel...lightstreamer/
the example worked perfect for me, but when I close the telnet sessions the LS server is shutting down too
Is there a way that the LS Server is not shutting down?
Thanks a lot for reply
-
December 23rd, 2009, 10:43 AM
#2
This behavior is forced by the mounted com.lightstreamer.adapters.remote.data.NetworkedDa taProvider, as it would not be able to honour the subscription requests with no feed connected.
An alternative is com.lightstreamer.adapters.remote.data.RobustNetwo rkedDataProvider, which overcomes the temporary lack of the feed with some arbitrary assumptions.
See this post.
-
December 23rd, 2009, 12:28 PM
#3
thanks a lot, that solved my problem
I have an other question
Is there a java api to transform the telnet stuff into java?
I've found the .Net example but i can't see how i have to do this in java.
Or do I have to open the sockets by hand in java and write to it?
thanks for your help
-
December 23rd, 2009, 06:11 PM
#4
Java Adapters usually run in-process with the Lightstreamer Server, so you don't need to use the socket-based protocol. In such case, you will use the provided Java API (as introduced in this tutorial).
Only in case you have a requirement to make the Java Adapters run on a different machine than the Lightstreamer Server, you should actually open sockets by hand and implement the Lightstreamer network protocol.
-
April 8th, 2010, 07:16 PM
#5
Remote Adaptor
Hi Alessandro,
I am trying to use com.lightstreamer.adapters.remote.data.RobustNetwo rkedDataProvider. Everything is going well. But the problem is, for each subscription from the client an Unique id is created and sent from Proxy Adaptor to the counter part. When I send reply from counterpart to Proxy adapter need to add the Unique Id. So each client will have defferent Uniue ID for the same item subscription. When more clients getting added need to maintian more Unique IDs for reply in the remote adaptor. Even if a client unsubscribes, I will not get the unsubscirbe notification untill all the clients unsubscribes for that particular item and also that will not provide the client identification. So it is very difficult to maintain these many Unique IDs in the remote adaptor.
Is there any solution to Identify a partuclular Clint is unsubscribe to a particular Item.
Request you to Please try to provide a solution for this problem.
Thanks in advance.
-
April 9th, 2010, 09:57 AM
#6
The unique ID is associated to the item, not to the user. Remember that the Data Adapter is completely shielded from the actual users subscribing to an item. It receives a subscription when the first user subscribed to an item, it receives an unsubscription when the last users subscribes to that item, and not notifications happen in the middle.
On the other hand, the user identity for each subscription and all the authorization logic is handled by the Metadata Adapter.
See ARI "Protocol.pdf" for a full description of the protocols used for both the Data Adapter and the Metadata Adapter.
Similar Threads
-
By mohelal84@yahoo.com in forum Adapter SDKs
Replies: 5
Last Post: March 25th, 2015, 09:26 AM
-
By webmons in forum Adapter SDKs
Replies: 3
Last Post: March 7th, 2013, 09:30 AM
-
By gani in forum Adapter SDKs
Replies: 5
Last Post: April 30th, 2010, 10:03 AM
-
By latha in forum Adapter SDKs
Replies: 9
Last Post: June 3rd, 2009, 09:56 AM
-
By Alessandro in forum Adapter SDKs
Replies: 3
Last Post: May 30th, 2008, 01:49 PM
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 05:11 PM.
Bookmarks