jbase_agent command
jbase_agent listens on a TCP port and serves jRemote and JDBC clients.
COMMAND SYNTAX
jbase_agent [-p port] [-A none|user|account] [-b address]
[-c certificate -k key] [-N] [-R bytes] [-W bytes]
jbase_agent start|stop [options]
jbase_agent adduser|deluser|passwd
SYNTAX ELEMENTS
| Option | Meaning |
|---|---|
| -p, --port | the port to listen on, 20002 by default |
| -A, --authentication | how clients are checked: none (the default), user or account |
| -b | the address of the interface to listen on; all interfaces by default |
| -c, --certificate; -k, --private_key | a certificate and its private key; given together, they turn on TLS for every connection |
| -N | do not set TCP_NODELAY on connections |
| -R, -W | the read and write buffer sizes of connections |
| start, stop | run the agent in the background, or stop the one running on the port; the process id is kept in /tmp/jagent.lock<port> |
| adduser, deluser, passwd | manage the users of -A user |
NOTES
The agent starts a new process for each connection. That process serves the connection and ends when the connection closes, so a crash or a STOP in one client's request does not touch the others. Every process runs as the operating system user who started the agent.
The three ways to authenticate a client are:
| Mode | The client sends | Checked against |
|---|---|---|
| none | a user name and a password | nothing: every client is accepted |
| user | a user name and a password | the agent's own user list, kept in the jBASE file JAGENT_USER and managed with jbase_agent adduser, deluser and passwd |
| account | a user name, an account and a password | the jBASE account in the SYSTEM file, as LOGTO does it; the session is then logged on to that account |
In modes none and user the session runs in the environment the agent was started with. Set JBCOBJECTLIST, JEDIFILEPATH and the other variables described in [Environment variables relevant to jBC programming](#Environment variables relevant to jBC programming) before starting it.
A client can set environment variables in its own session, see Agent requests.
EXAMPLE
export JBCOBJECTLIST=$HOME/lib jbase_agent -p 20002 -A user