Adapter scenarios

The JNDI Adapter can be used in an input or output card. In an input card, the adapter can only perform lookup operations. Data is passed to the adapter on the URL command line option. Each provider implementation uses a different URL format. When used as an output card, data is passed, as defined by a schema, to enable it to determine what to do.

Therefore, there are two scenarios for using the adapter.

  • If no data is required to be returned from the adapter, call the adapter in an output card. Typical scenarios include:
    • Add operations
    • Modify operations
    • Delete operations
  • If data is required to be returned from the adapter, call the adapter in a GET function call. Build the data to be passed to the adapter in an output card and set the output adapter to `sink'. Map the root object of this card to the third parameter of the GET function using the PACKAGE call to pass the XML data as a text item. See "Return Values" for more information on the format of the data returned from the GET function call.