Adapter Development Kit 9.12 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Connections | Updating the Resource Bundle
 
Updating the Resource Bundle
In the WmManagedConnectionFactory implementation class, the call to WmDescriptor.setDescriptions in the fillWmDescriptor implementation causes Integration Server to look for display names and other display data in the adapter's resource bundle. Update the java.util.ListResourceBundle implementation with entries for the WmManagedConnection implementation and its parameters.
In the example, update MyAdapterResource class's Object[][] _contents with the following:
package com.wm.MyAdapter;

import java.util.ListResourceBundle;
import com.wm.adk.ADKGLOBAL;

import com.wm.MyAdapter.connections.SimpleConnectionFactory;

public class MyAdapterResource extends ListResourceBundle implements MyAdapterConstants{

static final String IS_PKG_NAME = "/MyAdapter/";

static final Object[][] _contents = {
..
..
..

//SimpleConnection
,{SimpleConnectionFactory.class.getName() + ADKGLOBAL.RESOURCEBUNDLEKEY_DISPLAYNAME,
"Simple Connection"}
,{SimpleConnectionFactory.class.getName() + ADKGLOBAL.RESOURCEBUNDLEKEY_DESCRIPTION,
"Simple framework for demonstration purposes"}
,{SimpleConnectionFactory.SIMPLE_SERVER_HOST_NAME + ADKGLOBAL.RESOURCEBUNDLEKEY_DISPLAYNAME,
"Host Name"}
,{SimpleConnectionFactory.SIMPLE_SERVER_PORT_NUMBER + ADKGLOBAL.RESOURCEBUNDLEKEY_DISPLAYNAME,
"Port"}
};

protected Object[][] getContents() {
// TODO Auto-generated method stub
return _contents;
}
}
For more information about resource bundles, see Creating Resource Bundles Class With Example .