About this task
The supervisor system is an Eclipse rich client. The communication
protocol between the teller system and the supervisor system is HTTP. However,
you can configure the system with JMS. For more details about the configuration,
refer to the Asynchronous Messaging section. To use the override function,
perform the following key steps:
- Initialize the override request view
The override request view
is provided by BTT, You just need to initialize it and integrate the view
into your own application. The following is the sample code to initialize
the override request view.
String supervisorID=userName.getText().trim();
try {
//Read the configuration file
ElementFactory factory = new BasicElementFactory(
"jar:///com/xxxbank/supervisor/suconfig.xml");
//Initialize InboundRequestsViewConfig
InboundRequestsViewConfig config = (InboundRequestsViewConfig) factory
.getElement("inboundViewConfig");
//Set SupervisorID
config.setSupervisorName(supervisorID);
Context.supervisorID=supervisorID;
//initialize override request view
InboundRequestsView.setInboundRequestsViewConfig(config);
} catch (Throwable e) {
e.printStackTrace();
}
- Configure the server URL in the configuration file
The following
is the sample configuration file. Locate
remoteConnectorUrl and change
its value to your own BTT service URL.
<config>
<com.ibm.btt.bc.override.OverrideManager id="overrideManager"
Instantiate="factoryElement"
FactoryClass="com.ibm.btt.remote.RemoteProxyFactory"
remoteServiceId="com.ibm.btt.bc.override.agent.OverrideAgent"
remoteConnectorUrl="http://9.125.15.43:9080/BTTOverrideTestWeb/BTTRemoteConnector">
</com.ibm.btt.bc.override.OverrideManager>
<com.ibm.btt.msg.poll.PollListenerManager id="msgListenerManager"
interval="1000" InitMethod="initialize"
remoteConnectorUrl="http://9.125.15.43:9080/BTTOverrideTestWeb/BTTRemoteConnector">
</com.ibm.btt.msg.poll.PollListenerManager>
<com.ibm.btt.bc.override.supervisor.views.InboundRequestsViewConfig
id="inboundViewConfig">
<ref Injection="listenerManager" refId="msgListenerManager" />
<ref Injection="overrideAgent" refId="overrideAgent" />
<map Injection="routes">
<entry key="remoteRoute">
<list Injection="value">
<com.ibm.btt.bc.override.customization.supervisor.ShowDetailsPage />
<com.ibm.btt.bc.override.customization.supervisor.CommentsPage />
</list>
</entry>
</map>
</com.ibm.btt.bc.override.supervisor.views.InboundRequestsViewConfig>
</config>