References#
response.varfile#
See an excerpt of available properties in response.varfile
for an unattended installation including a description of the properties meaning:
property name |
sample value |
comment |
---|---|---|
amq.admin.password |
admin |
# ActiveMQ admin password |
amq.admin.user |
admin |
# ActiveMQ admin username |
amq.adminPort$Long |
8161 |
# ActiveMQ admin port number |
amq.jmsPort$Long |
61616 |
# ActiveMQ server port number |
amq.njams.password |
njams |
# ActiveMQ nJAMS user password |
amq.njams.user |
njams |
# ActiveMQ nJAMS user name |
amq.queue |
njams |
# ActiveMQ destination prefix |
amq.serviceName |
ActiveMQ_njams |
# ActiveMQ service name |
db.class |
org.postgresql.Driver |
# RDBMS classname of JDBC driver |
db.clearDB$Boolean |
true |
# removes all objects from RDBMS schema before installation |
db.driver |
/tmp/postgresql-42.2.8.jar |
# Specify jdbcdriver of external RDBMS |
db.installType |
0 |
# 0=requires empty schema, 1=use existing nJAMS schema, 2=clear existing schema |
db.pwd |
postgres |
# RDBMS user password |
db.systemId$Integer |
0 |
# 0=H2, 1=Oracle, 2=MSSQL, 3=PGSQL |
db.url |
jdbc:postgresql://localhost:5432/njams |
# RDBMS connection url |
db.user |
postgres |
# RDBMS user name |
es.api.port$Integer |
9300 |
# Elasticsearch api port number |
es.requireAuth$Boolean |
false |
# Enable/disable required authentication |
es.cluster |
njams |
# Elasticsearch cluster name |
es.configure$Boolean |
true |
# |
es.data.path |
/home/docker/njams-install/elastic/data |
# Elasticsearch pathname to data files |
es.heap |
2g |
# Elasticsearch heap size |
es.host |
localhost |
# Elasticsearch host name |
es.http$Boolean |
true |
# Elasticsearch use http |
es.http.port$Integer |
9200 |
# Elasticsearch http port number |
es.node.name |
njams-node |
# Elasticsearch node name |
es.serviceName |
elastic_njams |
# Elasticsearch service name |
es.sniffingEnabled$Boolean |
true |
# Enables/disbales sniffing |
es.requireSSL$Boolean |
false |
# Enable/disable required SSL connection to ES |
es.url |
localhost:9300 |
# Elasticsearch url |
es.version |
es6 |
# Select ‘es5’ or ‘es6’. Available only for release 4.4. |
njams.admin |
admin |
# nJAMS admin username |
njams.adminGroup |
admin |
# nJAMS admin groupname |
njams.adminPwd |
admin |
# nJAMS admin password |
njams.instance |
njams |
# nJAMS instance name |
njams.show$Boolean |
true |
# |
pg.64bit$Boolean |
true |
# PostgreSQL 32bit/64bit |
pg.initDbDir |
/home/docker/njams-install/pgsql/data |
# PostgreSQL pathname to init database |
pg.dbDir |
/home/docker/njams-install/pgsql/data |
# PostgreSQL pathname to database |
pg.database |
njams |
# PostgreSQL database name |
pg.njamspwd |
njams |
# PostgreSQL njams user password |
pg.njamsuser |
njams |
# PostgreSQL njams username |
pg.port$Long |
5433 |
# PostgreSQL server port number |
pg.pwd |
postgres |
# PostgreSQL system password |
pg.serviceName |
postgres_5432 |
# PostgreSQL service name |
pg.user |
postgres |
# PostgreSQL system username |
pg.remote$Boolean |
true |
# |
sys.adminRights$Boolean |
true |
# Admin rights are required, DO NOT CHANGE! |
sys.component.compAmq$Boolean |
true |
# Install ActiveMQ true/false |
sys.component.compElastic$Boolean |
true |
# Install Elasticsearch true/false |
sys.component.compNjams$Boolean |
true |
# Install WildFly/nJAMS Server ture/false |
sys.component.compExtDB$Boolean |
true |
# Use external RDBMS (PostgreSQL, SQL Server, Oracle) |
sys.installationTypeId |
typeShowcase |
# Either typeStandard | typeFull | typeCustom | typeShowcase |
sys.languageId |
en |
# Only ‘en’ is supported yet. DO NOT CHANGE! |
sys.programGroupAllUsers$Boolean |
true |
# Windows: Install program group for AllUsers |
sys.programGroupDisabled$Boolean |
false |
# Windows: Do not create program group |
sys.programGroupName |
nJAMS-4 Server |
# Windows: Program group name |
wf.admin |
admin |
# WildFly admin username |
wf.adminPort$Long |
9990 |
# WildFly admin port number |
wf.adminPwd.encoded |
admin |
# WildFly admin password |
wf.bindAddress |
0.0.0.0 |
# WildFly bind ip address |
wf.heap$Integer |
1024 |
# WildFly heap size [MB] |
wf.httpPort$Long |
8080 |
# WildFly http port number |
wf.serviceName |
WildFly_njams |
# WildFly service name |
wf.useBindAddress$Boolean |
false |
# WildFly use bind ip address |
wf.waitAddress |
0.0.0.0 |
# WildFly wait ip address |
See also the following sample response.varfiles:
Unattended installation using external PostgreSQL RDBMS
response_5.0-postgresql.varfile
.Unattended installation using external SQL Server RDBMS
response_5.0-mssql.varfile
.
How to configure multiple nJAMS instances on the same machine#
In case you want to use multiple nJAMS Server by using separate WildFly servers on the same machine, you have to make sure that the WildFly servers contain different names of the session cookie.
Update standalone.xml
of the WildFly servers as follows:
Edit:
<njams-directory>/wildfly/standalone/configuration/standalone.xml
Search for:
<servlet-container name="default">
Add session-cookie entry to change the default session cookie name:
<servlet-container name="default"> <jsp-config/> <websockets/> <session-cookie name="MYSESSIONCOOKIE" /> </servlet-container>
MYSESSIONCOOKIE
is your individual name for the session cookie.Note
Make sure the WildFly servers use different ports.