About this task
To migrate the externalizer, you must migrate the
getSetting() parameter
and the iniFile path.
- Migrating the getSetting() parameter:
In IBM® WebSphere® Multichannel Bank
Transformation Toolkit version 8.0, each
component has its own initializer; therefore, you need to use the
initializer of each component to retrieve the parameter.
Following
is the code sample before migration:
String startupOpName = (String) Settings.getSettings().getValueAt("channelHandlers." +
channelContext.getDeviceType() + ".startupOp");
After you migrate to
WebSphere Multichannel
Bank Transformation Toolkit version
8.0, the code
is as follows:
String startupOpName = (String) ChannelInitializer.getSettings().
getValueAt(channelContext.getDeviceType() + ".startupOp");
- Migrating iniFile path:
WebSphere Multichannel
Bank Transformation Toolkit version
8.0 supports
following types of iniFile:
- JAR path iniFile, such as jar:///package/dse.ini;
- File path iniFile, such as file:///path/dse.ini
- URL path iniFile, such as http://127.0.0.1:9080/BankWeb/path/btt.xml
If you use the file path method, you must migrate the iniFile
in the
StartServerServlet class:
String res=null;
if (!iniFileParameter.startsWith("/WEB-INF")) {
File iniFile=new File(iniFileParameter);
if (iniFile.isAbsolute() && iniFile.exists()) {
res=iniFile.getAbsolutePath();
}
res = "file:\\\\\\" + res;
}