Connection Class

The Connection class is an abstract class that encapsulates the behavior required for communicating with external systems and external applications (either Jade or non‑Jade systems).

In Jade thin client mode, all connections are made to the workstation that is running the Jade logic; that is, to the application server.

The Connection class supports both synchronous and asynchronous operations.

Asynchronous methods have a receiver object and a message (method name) specified as parameters. When the method completes successfully, the specified (callback) method of the object is called. The callback method must match the signature required by the calling asynchronous method.

Only one synchronous operation can be performed at the same time. Only one synchronous or asynchronous read operation can be performed at one time on a connection. Many asynchronous write operations can be performed at the same time on one connection.

Performing a synchronous write operation stops any additional requests from being queued until the synchronous operation is completed.

For details about the constants, properties, and methods defined in the Connection class, see "Connection Class Constants", "Connection Properties", and "Connection Methods", in the following subsections.

Object

JadeSerialPort, NamedPipe, TcpIpConnection