What the jBASE agent is

The jBASE agent, `jbase_agent` (also installed as `tafc_agent`), is the TCP server through which programs outside jBASE reach a TAFC system. The jRemote client libraries for Java (`jremote.jar`) and .NET (`jremote.dll`), the jBASE JDBC driver (`jbasejdbc.jar`) and the TAFC Enterprise Edition (JCA) connectors are all clients of it. They do not read files or run code themselves: they send requests to the agent, and the agent carries them out inside a jBASE session of its own.

A client can:

Each connection gets its own session, much like a user logged on at a terminal: open files, select lists and locks belong to the connection and are released when it closes. While a request runs, whatever the jBC code prints with CRT or PRINT is sent to the client as it happens, and an INPUT can be answered by the client.

The agent does not interpret anything itself. Every request is carried out by the same runtime functions that compiled jBC calls: a read request is a READ, a call request is a CALL, an execute request is an EXECUTE. What a jBC program would see, the client sees, including the effect of the environment the agent was started with.

The diagram follows one connection from start to end: the agent starts a process for it, the process checks the client's credentials, and then each request becomes a call into the jBASE runtime.

jBASE agent flow

This section describes the agent of TAFC PB201214 on Linux as found in its libraries (`libTAFCagent` and `libTAFCjcf`) and checked against a running agent.