Appendix > Installing the Remote API > To communicate with Windchill Requirements Connector
To communicate with Windchill Requirements Connector
Only one client can communicate with a running Windchill Requirements Connector application. The client can choose to close the connection to the application but leave it running. A new client can then connect to the application via the same port. A client can also request the application to shut down. See the example below:
// Create a remote client to communicate to the remote server
String SERVER_HOST = "192.168.11.77";
int APPLICATION_PORT = 5678;
IRemoteClient remoteClient = RemoteClientFactory.createRemoteClient(SERVER_HOST,
APPLICATION_PORT);
// connect to the remote server
remoteClient.connect();

// close the connection to the server
remoteClient.disconnect();

// open the connection again
remoteClient.connect();

// Request an application shut down
remoteClient.sendExit();
Was this helpful?