IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  listRegisteredAdapters

    Posted 02/11/10 03:03 PM

    I need to iterate and list all the adapters installed in the IS.
    I have used the following code to get list of adapters
    IData input = Service.doInvoke(“pub.art”,“listRegisteredAdapters”,pipeline);

    However I don’t know how to iterate these list and what kind object will be in list.


    #webMethods-Archive
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: listRegisteredAdapters

    Posted 02/11/10 06:11 PM

    Hi Kumar,

    The pub.art:listRegisteredAdapters java service returns an Array of IData objects with parameters adapterTypeName and adapterDisplayName.

    if I remember correctly, below are the steps to retrieve the desired values.

    1. listRegisteredAdapters returns an IData object.
    2. Create a cursor out of it.
    3. retrieve the IData array using IDataUtil.getIDataArray(IDataCursor idc, java.lang.String key). key will be “registeredAdapterList”.
    4. iterate through the IDataArray
      4.1 get cursor for the IData
      4.2 use IDataUtil.getString(IDataCursor idc, java.lang.String key) to retrieve the values for the keys adapterTypeName and adapterDisplayName

    Note: I have the working code in my personal laptop. I will share that with you shortly.

    Thanks and Regards,
    Rajkumar


    #webMethods
    #webMethods-Archive
    #Integration-Server-and-ESB


  • 3.  RE: listRegisteredAdapters

    Posted 02/12/10 06:41 AM

    Hi Rajkumar,

    Thanks for information.
    I will try out that.
    If possible please share the code that would be a great help for me.

    Thanks
    Selva


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-Archive


  • 4.  RE: listRegisteredAdapters

    Posted 02/12/10 03:36 PM

    Another idea is to not make this call in a Java service. Just call it in a FLOW step. Then you don’t have to mess with all the IData stuff yourself.

    Is there a reason you need to call this from Java?


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-Archive