Results 1 to 8 of 8

Hybrid View

  1. #1
    Member
    Join Date
    Dec 2009
    Location
    Oberentfelden
    Posts
    2

    Unhappy 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

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    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.

  3. #3
    Member
    Join Date
    Dec 2009
    Location
    Oberentfelden
    Posts
    2
    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

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    517
    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.

  5. #5
    Member
    Join Date
    Mar 2010
    Location
    Hyderabad
    Posts
    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.

  6. #6
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    517
    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

  1. Hello World -- Socket
    By mohelal84@yahoo.com in forum Adapter Protocol
    Replies: 5
    Last Post: March 25th, 2015, 10:26 AM
  2. Newbie Java Remote Adapter question
    By webmons in forum Adapter Protocol
    Replies: 3
    Last Post: March 7th, 2013, 10:30 AM
  3. How to Make Streaming Mode for Hello World Socket
    By gani in forum Adapter Protocol
    Replies: 5
    Last Post: April 30th, 2010, 11:03 AM
  4. Replies: 9
    Last Post: June 3rd, 2009, 10:56 AM
  5. "Hello World" Data Adapter [.NET]
    By Alessandro in forum Adapter APIs
    Replies: 3
    Last Post: May 30th, 2008, 02:49 PM

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 05:33 AM.