Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Mar 2012
    Location
    Frankfurt am Main
    Posts
    7

    Single data provider and multiple data sources

    Hi,
    I'd like to know if using a single data adapter to handle multiple data sources is the correct approach. The more I think of it, the more I believe it's not. Thing is, each of the data sources needs some kind of a "Data retriever", which retrieves the data and updates it using the listener.update() method. But if all the "Data retrievers" share the very same listener, then it's not very performant, is it? Is it at all possible to create multiple adapters using the very same DataProvider class? I actually tried it and it didn't work, both adapters were retrieving data from the very same source, therefore my question.
    I'd be grafteful for any hints.
    Thanks

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    718
    Yes it's possible to create two data adapters using the same Data Provider class; but you must pay attention to a couple of aspects.
    If you use the same java class for multiple Data Provider you have to consider that these will share the same class loader with all the consequences which implies (sharing of static resources for example).
    Different Data Provider (within the same Adapter Set) must manage items with different names so that the metadata provider will work properly.

 

 

Similar Threads

  1. Replies: 14
    Last Post: November 24th, 2020, 03:48 PM
  2. Misconfigured Vivace / Delayed Updates with Data Provider
    By exchangepulse in forum Adapter SDKs
    Replies: 5
    Last Post: October 28th, 2009, 05:41 PM
  3. Multiple Data Provides
    By wwatts in forum Adapter SDKs
    Replies: 1
    Last Post: March 18th, 2009, 09:16 AM
  4. Data Provider Protocol Method Tags
    By juls in forum Adapter SDKs
    Replies: 1
    Last Post: March 4th, 2009, 09:00 AM
  5. Data Provider question
    By yanhu in forum Adapter SDKs
    Replies: 1
    Last Post: July 25th, 2007, 01:07 AM

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 10:11 PM.
Lightstreamer Logo