Session Remote Connection for POJO service

The session means the lifecycle of the instance is the same as the session in the web container, which seems shorter than the singleton but longer than the prototype.

The process is basic the same with Singleton Remote Connection, except two difference.
  1. Registry the service in the Element Factory configuration file on the server side, set the scope to session. Here is an example:
    <service.TestService id="testService" scope=”singleton”/>
  2. Configure the proxy on the client side. Here is an example:
    <service.TestServiceInterface id="testServiceProxy"
    	Instantiate="factoryElement"
    	FactoryClass="com.ibm.btt.remote.ServiceProxyFactory"
    	serviceUrl="http://localhost:9080/BTTMCATestWeb/JavaConnector"
    	serviceId="testService">
    <ref Injection="httpClient" refId="httpClient" />
    	</service.TestServiceInterface>
    	<org.apache.commons.httpclient.HttpClient id="httpClient" />
  3. Call the service on the client side. This part is the same as the Singleton Remote Connection for POJO service.