Transaction server Run Engine commands
Use the following Run Engine commands to configure the Transaction server Docker container.
/SETUP/bin/entrypoint.sh.
If you want to implement custom logic or override existing configurations, ensure
that the necessary parameters can be resolved by the commands during
startup.| Description | Command |
|---|---|
| Set or change the merchant key. | run update-encrypted-merchantkey
MERCHANTKEY_ENCRYPT
|
| Set or change the key encryption key. | run update-key-encryption-key
KEY_ENCRYPTION_KEY
|
| The SPI username and password is used for
inter-component server API invocation only. The
spiuser is configured in the Store
server, Search server and Customization server, and used in the API
invocation from those servers to the Transaction server. The images
need to be configured with the spiuser
password, otherwise the component servers cannot connect to the
Transaction server. Sets Java virtual machine (JVM) property: spi.username, spi.password |
run set-spi-user userName
ASCII_encrypted_password
|
| Set the connection to the Ingest server. | run set-ingest-server hostName
port
|
| Sets the connector server host and port. | run set-connector-server
<hostName>
<port> Where,
|
| For authoring environments, add JAAS, JDBC provider, datasource connection information to connect to the live database. | run add-datasource
jndi
dbName
dbType
dbHost
dbPort
dbUser
dbPass
xa
sslConnect
|
| Add a database connection datasource for PostgreSQL. | run add-datasource-postgres jndi
database
dbHost
dbPort
dbUser
dbPass
xa
sslConnect
|
| Configure the connection to the Store server. | run set-store-server hostName
port
|
| Set Store server host name in the foundation wc-component.xmlconfiguration file. | sed -i "s/value=\"store\"/value=\"${STORE_HOST}\"/g"
/opt/ol/wlp/usr/servers/transactionServer/apps/ts.ear/xml/config/com.ibm.commerce.foundation/wc-component.xml Note: This
is not a Run Engine command, but it is a
configuration that is required for the Commerce Lab
store preview function to work. If the host name of your
Store server Docker container is not
store, then you must change the value
as needed using this command. |
| Set the connection to the React-based store Store server. | run set-react-store-server hostName
port
|
| Configure the connection to the Customization server. |
run set-xc-server hostName
port
|
| Configure the connection to the Store server web server for stores that have been migrated from WebSphere Commerce Version 7 or Version 8. | run set-store-web-server
storeWebHost
storeWebPort
|
| Update the database user and password credentials that are used to connect to the database. | run update-datasource-cred jndi
dbUser
dbPass
|
| Update the database server host name, port, database name, and the user and password credentials that are used to connect to the database. | run update-datasource-db jndi
database
dbHost
dbPort
sslConnect
|
| Add the JVM parameter string to existing JVM options (/Server:server1/JavaProcessDef:/JavaVirtualMachine:/). | run add-generic-jvmarg
jvmArg
For example, the following command sets
-Xgcpolicy:gencon to a generic JVM
argument. |
| Create new object cache instance. You can see the object cache list in Resources/Cache instances/Object cache instances of the Open Liberty Server Administrative Console in the Transaction server. | run
add-objectcache jndiName
cacheSize
replicationType
sizeMB
Note: This command adds an object cache instance if one does not
exist. |
| Create a reserved work manager and set the maximum thread number to 10. | run add-work-manager-reserved |
| Create a work manager and set the maximum number of threads. | run add-work-manager name
maxThread
|
Check whether the server1 is started by running
the serverStatus command. |
run get-status |
| Set the maximum size of the trace log file. | run set-trace-file-maximum-size
size
|
| Set the maximum number of historical trace files. | run set-trace-file-maximum-number
number
|
| Set the trace format. | run set-trace-format
traceFormatType
|
| Set the default trace level for Open Liberty Server applications. This will take effect after the next restart of the application and is persisted through any subsequent restart. | run set-trace-specification
spec
Note:
|
| Make trace.log and ffdc log generate to this directory. | run set-trace-log-directory
directory
|
Set the initialHeapSize and
maximumHeapSize values. |
run set-heap-size initHeapSize
maxHeapSize
|
| Create string name space binding. | run set-jndi-entry jndi
value
|
| Set a custom JVM property. | run set-system-property name
value
For example, run set-system-property SKIP_IDENTIFIER_CHECK true Sets a JVM
custom property |
| Update the size of object cache instances. The size can be limited in number of lines, or in number of megabytes (MB). | run update-objectcache-size jndi
size
sizeMB
For example:
|
The set-cache-provider command includes
two functions:
|
For example:
|
| Merge cachespec.xml cache configuration files. | run merge-cachespec source_file
target_file
|
Set AllowedDomain value under
Webmodules in
wc-server.xml. |
run add-allowed-domain domainName
moduleName
|
Set AllowedHost value
under Webmodules in
wc-server.xml. |
run add-allowed-host hostName
moduleName
|
| Update the settings of a work manager if the work manager exists. | run update-work-manager-thread name
minThreads
maxThreads
threadPriority
|
| Change JVM property (EncryptionKeysInSystemProperty, CurrentEncryptedMerchantKey, CurrentEncryptedSessionKey). | run set-encryption-keys merchantKey
sessionKey
|
| Set or change the session key in wc-server.xml. | run set-session-key
sessionKey
|
| Enable or disable the single sign-on (SSO) keepAliveSession parameter in wc-server.xml. This parameter allows you to keep a session alive beyond the standard Commerce+ session timeout. | run set-sso-keep-alive-session
value
|
| Change MQ connection pool information. | run change-mqadapter-max-connection
connectionNumber
|
| Create JMS connection factory. | run create-jms-connection-factory
mqServerHost
mqServerPort
queueManager
connectionNumber
For example, run create-jms-connection-factory test.hcl.com 1414 FVT 15 IBM MQ server is test.hcl.com, port is 1414, queueManager is FVT. |
| Create JMS queues. | create-jms-queues
queueManager
For example, run create-jms-queues FVT |
| Enable application activity sessions. | run enable-activity-session
timeout
|
Set schedulerID. |
run add-generic-jvmarg
-Dcom.ibm.commerce.scheduler.SchedulerHostName=${schedulerID}
Works with |
Set schedulerCloneID. |
run add-generic-jvmarg
-Dcom.ibm.commerce.scheduler.SchedulerCloneId=${schedulerCloneID} Works
with |
| Update datasource server. | update-wc-server-datasource dbType
dbHost
dbPort
dbname
dbauser
dbapassword
dbuser
dbpassword Where,
|
| To clear any trace level that is set and takes effect on the next container start. | run reset-trace-specification |
| Create an Oracle datasource to a server configuration. | run add-datasource-oracle jndi
database
dbHost
dbPort
dbUser
dbPass
xa
sslConnect Where,
|
| Set the trace format for logs. | run set-trace-format
traceformatType
|
| Configure React Store Service hostname and port. | run set-react-store-service
hostName
port Where,
|
| Configure React Store Server Preview hostname and port. | run set-react-store-server-preview
hostName
port Where,
|
| Create a PostgreSQL datasource to a server configuration. | run add-datasource-postgres jndi
database
dbHost
dbPort
dbUser
dbPass
xa
sslConnect Where,
|
| Convert the ts-app OOTB image to a ts-app live image. | run convert-to-live |
| Enable MQ in wc-server.xml configuration. | run enable-mq-in-wc-server-xml
filePath
Where,
|
| Enable SSO in wc-server.xml configuration. | run enable-sso-wc-server-xml
filePath Where,
|
| Update local store web server configuration. | run update-localstore-webserver
hostname
filePath Where,
|
| Update wc-server.xml configuration. | run update-wc-server-xml
filePath Where,
|
| Enable or configure workspace settings in JVM. | run update-workspace-enable
enableWorkspace
enableWorkspaceChangeHistory
enableBaseChangeHistory
enableWorkspaceChangeHistoryAuditEnabled Where,
|
| Add a new SPI registry. | run add-spi-registry registryId
username
password Where,
|
| Add a new JNDI entry to the server configuration. | run add-jndi-entry name
value Where,
|
| Add a new JVM system property to the jvm.options file. | run add-system-property name
value
|
| Enable JSON logging on the Liberty Server. | run enable-json-logging |
| Create configuration properties file for run engine commands. | run generate-config-properties
LibertyHome
ServerName
|
| Update an existing JNDI entry in the server configuration. | run update-jndi-entry name
value
|
| Update SPI registry user password. | run update-spi-registry-user-password
registryId
username
password
|
| Update an existing JVM system property in the jvm.options file. | run update-system-property name
value
|
| Configure transaction server by setting transaction host name, secured port, and nonsecured port. | set-transaction-server hostName
securedPort
nonsecuredPort
|
| Update connection manager attribute in datasource file. | Command run update-datasource-connectionmanager-attribute
jndi attributename attributevalue
|