Results 1 to 8 of 8

Hybrid View

  1. #1
    HI Giuseppe,

    Thanks for the quick reply,

    I am going for the second option - communication between metaData and data adapter.

    Is there a direct way to trigger the subscribe method of data adapter from
    notifyNewTable call, i could see Demos with volatile attributes which trigger the data pull for each item. Apart from that do you have any other recommendation for the communication.

    Thanks
    Rajesh


  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi Rajesh,

    Yes you are right, the most convenient solution, especially in case of Java adapters, is that the Metadata holds a reference to the Data Provider instance, and perform direct calls when needed.

    That said, please consider also the possibility that the Metadata call not the subscribe method but a different method in order to distinguish the two cases, the regular subscribe call from the Lightstreamer server, from Metadata incoming calls.

    Regards,
    Giuseppe

  3. #3
    Thanks Giuseppe its acknowledged, I will make sure we have different method calls.

    One question, is it possible to use spring
    Application events for metaData and data adapter communications? Implement ApplicationListener<ApplicationEvent> in our DATA Adapters so we can fire an application event from metaDataAdapter once notifyNewTables is called.

    To put in simple words,
    can we initialize spring context inside adapter life cycle classes ?

    Thanks
    Rajesh

 

 

Similar Threads

  1. How to use multiple adapters in one web client
    By sjohn in forum Client SDKs
    Replies: 11
    Last Post: January 23rd, 2015, 11:22 AM
  2. recommened usage - multiple item subscription
    By tstojano in forum Client SDKs
    Replies: 1
    Last Post: August 13th, 2008, 04:12 PM
  3. Multiple adapters
    By TonyRoberts in forum Adapter SDKs
    Replies: 10
    Last Post: September 12th, 2007, 02:46 PM
  4. Multiple connection warning alerts from Firefox
    By Waddy in forum Client SDKs
    Replies: 4
    Last Post: May 14th, 2007, 02:38 PM
  5. Accessing multiple adapters
    By Waddy in forum General
    Replies: 2
    Last Post: March 16th, 2007, 06:06 AM

Tags for this Thread

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 04:08 AM.