2.7 Java Service Manager Additional Servers

Each Java Service Manager instance can support additional JSM servers.

This allows multiple JVM jobs to share the same JSM instance directory and files.

Use the same JDK version when sharing a JSM instance directory.

The STRJSM command submits the RUNJSM program which starts a JVM job to run the Java Service Manager.

The Java Service Manager uses the instance manager.properties file to determine its runtime configuration.

The Java Service Manager will attempt to bind to the base TCP/IP interface (tcp.interface and tcp.port) to start a JSM server.

If it cannot bind to the base TCP/IP interface it will attempt to bind to the next available additional TCP/IP interface (additional.tcp.interface.n and additional.tcp.port.n). Once it has bound to an additional TCP/IP interface, the optional console and pool server for that additional server are started.

It is possible to configure 1 to 10 additional servers.

The following trace examples illustrate how the first STRJSM command, starts a JSM server, a pool server and console server. The next STRJSM command using the same instance directory starts an additional JSM server.

Example: manager.properties

 

#

# Base instance

#

tcp.port=4560

tcp.backlog=256

# tcp.timeout=2000

tcp.interface=*all

#

console.tcp.port=4561

console.tcp.backlog=5

# console.tcp.timeout=2000

console.tcp.interface=*all

#

pool.tcp.port=4565

pool.tcp.backlog=256

# pool.tcp.timeout=2000

pool.tcp.interface=*all

# pool.hosts=SERVER1:7766,SERVER1:4560

# pool.hosts=SERVER1:7766,10.2.1.47:4560,SERVER1:4560

pool.hosts=LANSA06:4760

#

# Additional instance 1

#

additional.tcp.port.1=4360

additional.tcp.interface.1=*all

# additional.console.port.1=4361

# additional.console.interface.1=*all

# additional.pool.port.1=4362

# additional.pool.interface.1=*all

#

# additional.httpd.1=system/httpd-1.xml

 

#

# Additional instance 2

#

additional.tcp.port.2=4363

additional.tcp.interface.2=*all

 

Example: First STRJSM MANAGER.TXT trace

 

manager: manager server configuration

manager: tcp.port           : 4560

manager: tcp.interface      : *all

manager: tcp.backlog        : 256

manager: tcp.nodelay        : <null>

manager: tcp.buffer.send    : <null>

manager: tcp.buffer.receive : <null>

manager: create manager server

manager: create socket address to listen on port 4560 across all interfaces

manager: bind to socket address

manager: start manager server

 

manager: pool server configuration

manager: pool.tcp.port           : 4565

manager: pool.tcp.interface      : *all

manager: pool.tcp.backlog        : 256

manager: pool.tcp.nodelay        : <null>

manager: pool.tcp.buffer.send    : <null>

manager: pool.tcp.buffer.receive : <null>

manager: create pool server

manager: create socket address to listen on port 4565 across all interfaces

manager: bind to socket address

manager: start pool server

manager: pool host : LANSA06:4760

 

manager: console server configuration

manager: console.tcp.port           : 4561

manager: console.tcp.interface      : *all

manager: console.tcp.backlog        : 5

manager: console.tcp.nodelay        : <null>

manager: console.tcp.buffer.send    : <null>

manager: console.tcp.buffer.receive : <null>

manager: create console server

manager: create socket address to listen on port 4561 across all interfaces

manager: bind to socket address

manager: start console server

 

manager: instance servers started

 

 

Example: Second STRJSM MANAGER.TXT trace

 

manager: manager server configuration

manager: tcp.port           : 4560

manager: tcp.interface      : *all

manager: tcp.backlog        : 20

manager: tcp.nodelay        : <null>

manager: tcp.buffer.send    : <null>

manager: tcp.buffer.receive : <null>

manager: create manager server

manager: create socket address to listen on port 4560 across all interfaces

manager: bind to socket address

manager: bind exception : Address already in use.

 

manager: manager server configuration

manager: tcp.port           : 4360

manager: tcp.interface      : *all

manager: tcp.backlog        : 20

manager: tcp.nodelay        : <null>

manager: tcp.buffer.send    : <null>

manager: tcp.buffer.receive : <null>

manager: create manager server

manager: create socket address to listen on port 4360 across all interfaces

manager: bind to socket address

manager: start manager server

 

manager: no pool server configuration

 

manager: no console server configuration

 

manager: additional '1' instance servers started