-
November 21st, 2008, 03:18 PM
#1
Communication between the Metadata Adapter and a Data Adapter [Java]
With Lightstreamer Server v.3.5, parallel initialization of the Adapters was introduced. This means that any previously suggested mechanisms for letting the Adapters find each other must be made more robust.
In the distribution of Lightstreamer 3.5+ there are several examples of Data and Metadata Adapter finding each other in a robust way. An example is reported below:
adapters.xml:
ChatDataAdapter.java:
ChatMetadataAdapter.java:
Basically, the actual communication between the Adapters should begin only after all the init() methods have completed. In the example above, this is accomplished in the Metadata Adapter by looking for the Data Adapter on the notifyUserMessage() call, which is called after all the init() methods for all Adapters have completed.
More in general, the following rule applies: Any method of any Adapter, except for init() and setListener(), is guaranteed to be called after the init() methods of all the Adapters() have finished their execution.
-
March 18th, 2010, 11:20 AM
#2
Can you give me that ChatDataAdapter.java,please. Because I only see the compiler class file of this java file.
Thanks!
-
March 18th, 2010, 11:33 AM
#3
Currently, you can find It in the "DOCS-SDKs/sdk_adapter_java/examples/Chat_Adapters" folder of the Lightstreamer distributions.
-
October 22nd, 2011, 07:42 AM
#4
Java applets not loading? Do i need to update Microsoft Virtual Machine?
-
October 24th, 2011, 09:33 AM
#5
Hi,
can you please explain your situation?
The above discussion does not involve java applets at all.
Also, the Microsoft Java Virtual Machine was dismissed a long time ago, and none of our software still supports it.
You should use the Java Virtual Machine from oracle (or any other java virtual machine that supports at least java 5)
Similar Threads
-
By Swapnonil Mukherjee in forum General
Replies: 1
Last Post: November 4th, 2013, 09:39 AM
-
By V S Suresh in forum Adapter SDKs
Replies: 2
Last Post: October 25th, 2012, 08:11 AM
-
By subuta in forum Client SDKs
Replies: 2
Last Post: January 5th, 2012, 08:53 AM
-
By k.mcc2009 in forum Adapter SDKs
Replies: 1
Last Post: May 21st, 2009, 09:41 AM
-
By CitiMan in forum Adapter SDKs
Replies: 4
Last Post: November 21st, 2008, 05:24 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 03:45 AM.
Bookmarks