IBM WebSphere Multichannel Bank Transformation Toolkit, Version 7.1

Singleton Remote Connection for POJO service

About this task

The Singleton Remote Connection means that there is only one service instance in the server environment and only one instance for one particular id.

Perform the following procedure to set up a Singleton Remote Connection for POJO service:

  1. Register the service in the Element Factory configuration XML file on the server side. Here is an example::
    • <service.TestService id="testService" scope=”singleton”/>

      The service.TestService corresponds to the implementation of the service. The scope is valued with singleton.

    • Set the callback function for the initialization and destroy of the service instance.

      <service.TestService id="testService" InitMethod="init" DestroyMethod="destroy"/>

      The init method of the service instance will be invoked to execute some initialization actions after the object is created. And the destroy method of the service instance will be invoked before the object is destroyed.

  2. Configure the proxy on the client side.
  3. Call the service on the client side.


Feedback