-
April 24th, 2012, 10:53 AM
#1
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
-
April 26th, 2012, 10:50 AM
#2
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
-
By LS_Developer in forum Client SDKs
Replies: 14
Last Post: November 24th, 2020, 03:48 PM
-
By exchangepulse in forum Adapter SDKs
Replies: 5
Last Post: October 28th, 2009, 05:41 PM
-
By wwatts in forum Adapter SDKs
Replies: 1
Last Post: March 18th, 2009, 09:16 AM
-
By juls in forum Adapter SDKs
Replies: 1
Last Post: March 4th, 2009, 09:00 AM
-
By yanhu in forum Adapter SDKs
Replies: 1
Last Post: July 25th, 2007, 01:07 AM
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 11:56 AM.
Bookmarks