Results 1 to 5 of 5
  1. #1
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    515

    Lightbulb 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.

  2. #2
    Member
    Join Date
    Mar 2010
    Location
    Ho Chi Minh
    Posts
    5
    Can you give me that ChatDataAdapter.java,please. Because I only see the compiler class file of this java file.
    Thanks!

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    515
    Currently, you can find It in the "DOCS-SDKs/sdk_adapter_java/examples/Chat_Adapters" folder of the Lightstreamer distributions.

  4. #4
    Member
    Join Date
    Oct 2011
    Location
    California
    Posts
    3
    Java applets not loading? Do i need to update Microsoft Virtual Machine?

  5. #5
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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

  1. Replies: 1
    Last Post: November 4th, 2013, 10:39 AM
  2. Passing data dynamicatlly to Java Data Adapter via
    By V S Suresh in forum Adapter APIs
    Replies: 2
    Last Post: October 25th, 2012, 09:11 AM
  3. Replies: 2
    Last Post: January 5th, 2012, 09:53 AM
  4. Replies: 1
    Last Post: May 21st, 2009, 10:41 AM
  5. How to let Data and Metadata Adapters comunicate
    By CitiMan in forum Adapter APIs
    Replies: 4
    Last Post: November 21st, 2008, 06:24 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 11:09 AM.