Connecting to RTserver on Another Node


Up to this point, all of our sample programs have connected to an RTserver process running on the same node. This is the default behavior of SmartSockets. If you do not specify where the RTclient should try to find and connect to RTserver, it always looks locally first.

This default behavior can be changed by setting the ss.server_names option for the Java RTclient. This option can be used to specify where RTserver is located, as well as what protocol to use when connecting. The ss.server_names option contains a list of machines with which the RTclients attempt to establish a connection.

Just as with the ss.project option, the ss.server_names option is set programmatically. For more details on how an RTclient finds RTserver and connects to it, see the TIBCO SmartSockets User’s Guide for more information on starting the RTserver. Keep in mind, however, that Java clients can only connect to running RTservers; Java clients cannot start new RTservers. For more details on setting options (including ss.project,) see Lesson 5: TIBCO SmartSockets Options.


TIBCO SmartSockets™ Java Library User’s Guide and Tutorial
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com