Listen Attribute

Regardless of the mechanism used for the initial metaspace member discovery phase, the members of the metaspace always establish TCP connections to each other.

The listen attribute lets the user specify the interface and the TCP port that the process will use to listen for incoming connections from new members to the metaspace, and specified in the form of a URL.

Listen URL format

To use a listen URL, use a string of the form:

   tcp://[interface[:port]]

This syntax specifies that the member should bind to the specified interface and the specified port when creating the TCP socket that will be used for direct communication between the members of the metaspace. If not specified, it will default to 0.0.0.0 (INADDR_ANY) for the interface and to the first available port starting from port 5000 and above.

A successful connection to the metaspace will return a valid instance of a Metaspace object, which can then be used to define, join or leave spaces.

See the entry for Metaspace in the TIBCO ActiveSpaces Java API Reference for more information about transport arguments.