-
June 1st, 2024, 02:31 PM
#1
itemHandle isn't available in Java Remote Adapter
Hi Everyone,
I am going to implement a java remote adapter to send messages to specific client subscriptions (similar to Lightstreamer-example-Messenger-adapter-java). However, by implementing "com.lightstreamer.adapters.remote.DataProvider" the override methods didn't provide "itemHandle" to identify different client subscriptions. Could someone give me a pointer as to what I should be doing?
Regards,
Last edited by ivanlo; June 1st, 2024 at 02:37 PM.
-
June 3rd, 2024, 09:49 AM
#2
Hello, I confirm that the interface for Java Remote Adapters is similar but different from the interface of Java in-process Adapters.
In fact, the need for communication with the Server via TCP makes some optimizations not feasible.
Among them, the use of handles to identify items; hence the "com.lightstreamer.adapters.remote.ItemEventListen er" interface simply identifies the items through the item names.
You can find an example of a Java Remote Adapter here.
Note that the Messenger demo also shows how the Metadata and Data Adapters communicate with each other. This is also done differently with Remote Adapters.
A remote version of the Messenger example was not provided, but the available Remote StockList demo includes custom code that starts both a Metadata and a Data Adapter and connects them to Lightstreamer Server.
So, this allows the two Adapter objects to see each other (even though in the StockList demo they don't need to communicate).
Similar Threads
-
By nkp01 in forum Adapter SDKs
Replies: 9
Last Post: October 23rd, 2023, 04:00 PM
-
By rvkvino in forum General
Replies: 6
Last Post: February 24th, 2017, 08:44 AM
-
By linkwithsarah.p in forum General
Replies: 0
Last Post: October 29th, 2014, 01:26 PM
-
By webmons in forum Adapter SDKs
Replies: 3
Last Post: March 7th, 2013, 09:30 AM
-
By k.mcc2009 in forum Adapter SDKs
Replies: 1
Last Post: May 21st, 2009, 09:41 AM
Tags for this Thread
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 09:10 PM.
Bookmarks