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:
The service.TestService corresponds to the implementation of the service. The scope is valued with singleton.
<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.