Results 1 to 2 of 2
  1. #1

    param in adapter xml


    Is there a way to share the param value across multiple data providers. Can we use the shared property in metadata_provider section or suggest any better option.


    <data_provider name="ADAPTER_ONE">
    <param name="userName">myusername</param>
    <param name="password">mypassword</param>
    <data_provider name="ADAPTER_TWO">
    <param name="userName">myusername</param>
    <param name="password">mypassword</param>
    <data_provider name="ADAPTER_THREE">
    <param name="userName">myusername</param>
    <param name="password">mypassword</param>

  2. #2
    Join Date
    Jul 2006

    Defining the shared properties once for the Metadata Adapter is a possibility.
    However, this requires that the Data Adapters can get a pointer to the related Metadata Adapter.
    This is not directly provided, but you can easily achieve this, by considering the following hints (note: this assumes in--process java adapters; for remote adapters there may be some complications):
    • The Metadata Adapter for an Adapter Set has a unique identifier which it receives as the "" parameter in the params Map upon init(). All Data Adapters in the same Adapter Set receive the same parameter. Hence the Metadata Adapter can register itself in a static Map by using this identifier.
    • You should set <metadata_adapter_initialised_first> as Y in adapters.xml. This ensures that init() is invoked on the various Data Adapters only after the invocation of init() on the Metadata Adapter has terminated.
    • The <classloader> setting for all Adapters should be left as "common".

    Our demos show examples of communications between the Adapters, although in slightly different contexts. Se the Chat Demo for instance:

    Another possibility, available since Server version 6.1, is to refer to JVM properties.
    In this case you will not save the <param> elements, but there you can just refer to common JVM properties and then you can specify the common values elsewhere once.
    See <enable_expansion_for_adapters_config> in the Server's main configuration file.



Similar Threads

  1. adapter.xml
    By chewjq in forum Adapter SDKs
    Replies: 1
    Last Post: May 20th, 2010, 09:17 AM
  2. DataAdapter with XML
    By Irwin in forum Adapter SDKs
    Replies: 11
    Last Post: April 30th, 2010, 08:42 AM
  3. User data into XML ?
    By quantri_vn87 in forum Adapter SDKs
    Replies: 3
    Last Post: October 29th, 2009, 02:16 PM
  4. DataAdapter using XML
    By amarin in forum Adapter SDKs
    Replies: 4
    Last Post: August 21st, 2008, 09:23 AM
  5. question about adapters.xml
    By quanhm in forum General
    Replies: 2
    Last Post: December 13th, 2007, 01:48 AM

Tags for this Thread


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 12:58 PM.