IBM Integration Bus, Version 10.0.0.0 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS


Starting, stopping, or quiescing TCP/IP connections

Use the IBM® Integration API to start, stop, or quiesce server connections that use a TCP/IP configurable service.

You can call the TCP/IP resource manager to start, stop, or quiesce a TCP/IP connection manager.

The following example shows how to start a connection manager:
ResourceManagerProxy rm = EG.getResourceManagerByName("TCPIP");
    Properties prop1 = new Properties(); prop1.setProperty("port","1445");
    rm.execute("start", prop1,"Server",null);
The following example shows how to stop a connection manager. Stopping a connection manager forcibly stops all connections, and no new connections are made.
ResourceManagerProxy rm = EG.getResourceManagerByName("TCPIP");
    Properties prop1 = new Properties(); prop1.setProperty("port","1445");
    rm.execute("stop", prop1,"Server",null);
The following example shows how to quiesce a connection manager. Quiescing stops new connections from being made. You must set a timeout value for the quiesce by using the quiesceTimeoutSec property, or else quiescing continues forever. If the quiesce is not completed before the value that is set on quiesceTimeoutSec, then the connections are forcibly closed.
ResourceManagerProxy rm = EG.getResourceManagerByName("TCPIP");
    Properties prop1 = new Properties(); prop1.setProperty("port","1445");
    prop1.setProperty("quiesceTimeoutSec","30"); 
	rm.execute("quiesce",
    prop1,"Server",null);

bc31680_.htm | Last updated 2015-03-27 19:27:54