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
    220
    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. How to connect multiple LS servers from a single LS web client?
    By LS_Developer in forum JavaScript Client API
    Replies: 7
    Last Post: September 11th, 2012, 09:32 AM
  2. Misconfigured Vivace / Delayed Updates with Data Provider
    By exchangepulse in forum Adapter Remoting Infrastructure
    Replies: 5
    Last Post: October 28th, 2009, 05:41 PM
  3. Multiple Data Provides
    By wwatts in forum .NET Adapter API
    Replies: 1
    Last Post: March 18th, 2009, 09:16 AM
  4. Data Provider Protocol Method Tags
    By juls in forum Adapter Remoting Infrastructure
    Replies: 1
    Last Post: March 4th, 2009, 09:00 AM
  5. Data Provider question
    By yanhu in forum Java Adapter API
    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
  •  
Powered by vBulletin® Version 4.2.0
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
All times are GMT +1. The time now is 11:44 AM.