-
January 2nd, 2008, 04:24 PM
#1
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
-
January 3rd, 2008, 10:57 AM
#2
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
-
January 4th, 2008, 12:42 PM
#3
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++ )
-
January 7th, 2008, 09:07 AM
#4
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
-
By fil in forum Client SDKs
Replies: 7
Last Post: July 8th, 2011, 11:20 AM
-
By Alessandro in forum Client SDKs
Replies: 2
Last Post: July 19th, 2010, 09:01 AM
-
By chuan_ckc in forum General
Replies: 4
Last Post: August 14th, 2009, 03:28 AM
-
By juls in forum Adapter SDKs
Replies: 1
Last Post: March 4th, 2009, 09:00 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 08:27 AM.
Bookmarks