Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jan 2008
    Location
    kansas
    Posts
    2

    ARI protocol question

    Hi,
    I'm trying to create an adapter remoting infrastructure. but i don't understand very well the order of messages.
    I create 3 sockets and connect to the ls-proxy-adapter, and then... what I must send?

    and another question,
    what' the Java compatible millisecond resolution date-time format?
    thanks in advance

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    972
    Admittedly, the ARI protocol documentation lacks a sequence diagram, but just consider that the Remote Adapters only have to respond to actions initiated by the Proxy Adapter.
    Once connected, a Remote Metadata Adapter should expect to receive a "Notify User" request message on the request stream as soon as a client requests is issued to Lightstreamer Server; after sending the answer, it will be followed by "Notify New Session" and other session related requests.
    A Remote Data Adapter, on the other hand, should expect to receive one or more "Subscribe" request messages on the request stream as soon as a client request has been processed by the Metadata Adapter.

    We require a "Java compatible millisecond resolution date-time format" to mean a timestamp value as it would be generated by a java "System.currentTimeMillis()" call.
    However, the timestamp is only used for debug-level logging by the Proxy Adapter and can be safely valued as 0.

    Dario

  3. #3
    Member
    Join Date
    Jan 2008
    Location
    kansas
    Posts
    2
    and, after receive a SUB request, what smessages should the application send?
    i'm trying to send an UD3 message, but i donīt know how to see what I'm sending in the browser.
    (i am using the stocklist demo, with only one item for my tests), the feed I'm building is in C++ )

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    972
    Are you restricting the client side subscription request to only one item or are you making your Remote Data Adapter sending UD3 messages upon the SUB request for only one specific item?
    Anyway, if you name the fields according to the field names used in the StockList demo front-end page, then your update should reach the client.
    In order to trace the story of your update inside the Server, you can extend the Server logging, which is configured in "conf\lightstreamer_log_conf.xml". As a first step, I suggest you to set the priority for the "LightstreamerLogger.subscriptions" category as "TRACE#com.lightstreamer.log4j.TraceLevel", in order to ensure that your message is correctly processed by the Proxy Adapter.
    Dario

 

 

Similar Threads

  1. Using JavaScript protocol from .NET
    By fil in forum Client APIs
    Replies: 7
    Last Post: July 8th, 2011, 11:20 AM
  2. Using the direct network protocol?
    By Alessandro in forum Client Protocol
    Replies: 2
    Last Post: July 19th, 2010, 09:01 AM
  3. Replies: 4
    Last Post: August 14th, 2009, 03:28 AM
  4. Data Provider Protocol Method Tags
    By juls in forum Adapter Protocol
    Replies: 1
    Last Post: March 4th, 2009, 09:00 AM

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