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 |
---|---|
Converts the environment to an authoring environment. | run convert-to-auth Convert the ts-app live image to authoring image. |
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
|
For development or authoring environment, set Search server name binding. | run set-search-server search_host
search_port
|
For live environments, set the Search server name binding for the Search repeater. | run set-search-server search_host
search_port
search_repeater_host
search_repeater_port
|
Set the connection to the Ingest server. | run set-ingest-server hostName
port
|
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
|
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/WebSphere/AppServer/profiles/default/installedApps/localhost/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 Management Center
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
|
Add a database connection datasource for Informix. | run add-datasource-informix dbtype
dbName
dbHost
dbPort
dbUser
dbPass
xa
sslConnect
|
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 WebSphere Application 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. |
Updates virtualhosts.xml. | run add-virtual-host
VirtualHostName
ListOfPorts
|
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
|
Enable application security. | run enable-security
appName
Configuration default values for activeUserRegistry, Authtype, AppSecurityEnablement, WIMuserRegistry, and mapping role to users. |
Enable servlet and command caching for web container setting. | run enable-servlet-caching Enables servlet caching For example, run enable-servlet-caching |
Check whether the server1 is started by running
the serverStatus command. |
run get-status |
Configure the database data source connection property. | run set-connection-pool jndi
connectionTimeout
maxConnections
minConnections
reapTime
unusedTimeout
agedTimeout
purgePolicy
|
Set the trace level for a running WebSphere Application Server application, which takes effect immediately. This trace level is reset to the default trace level upon restart. |
run set-dynamic-trace-specification spec
Note:
|
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 default trace level for WebSphere Application 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:
|
Reset the trace level to its default value
(*=information ). |
run
reset-dynamic-trace-specification Reset any trace
level on a running HCL Commerce application that was
set using the |
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 JPA specification compliance level. | run set-jpa-spec-level
level
|
Updates an existing server property or adds a server property. | run set-server-property
propertyName
propertyValue
For example, run set-server-property threshold 1800 |
Set SSL protocol for SSL setting. | run set-ssl-protocol
sslProtocol
|
Sets the alias of the certificate to use for the server. | run set-ssl-server-alias
alias
|
Change WebSphere Application Server data source properties (statement cache size) for a specific data source. | run set-statement-cache jndi
cacheSize
|
Set the encrypted Session Key. The JNDI entry
|
run set-session-key
sessionKey
|
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 |
Set application thread pool properties. | run set-thread-pool threadName
minSize
maxSize
inactivityTimeout
isGrowable
For example, run set-thread-pool webContainer 60 60 3000 false |
Set a web container property. Add custom properties for web
container settings (for example,
|
run set-webcontainer-property name
value
For example, run set-webcontainer-property httpOnlyCookies WC_GENERIC_ACTIVITYDATA,WC_AUTHENTICATION_* |
Change the WebSphere Application Server administrator user password. | run update-admin-password adminUser
adminPassword
|
Update all keystores that use the provided new password. | run update-keystore-passwords
currentPassword
newPassword
For example, run update-keystore-passwords aaa bbb |
Create a transport chain on specified server name and node name. | run add-transport-chain
chainName
endPointName
host
port
|
Update the thread poll value of the TCP inbound channel for the specified end point. | run update-tcpinboundchannel-threadpool endPointName
threadPoolName
|
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:
|
Start or stop the Dynamic Cache Monitor application on deployment. |
|
Enable or disable the automatic startup of
the Dynamic Cache Monitor application if the container is
restarted. |
run enable-cache-monitor-auto-start
value
|
The set-cache-provider
command includes two functions:
|
For example:
|
Merge cachespec.xml cache configuration files. | run merge-cachespec-xml 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
|
Add or update custom datasource
attributes |
run update-datasource-attribute -j
JDBCProvider -d
Datasource -n AttrName
-t AttrType -v
AttrValue
For example, to update the isolation level of the datasource
to Cursor
Stability: The
attribute webSphereDefaultIsolationLevel will
be added if it does not already exist, and is set to
2 (Cursor Stability). If the attribute is
preexisting, it will be set to the new value of
2. |
Add a custom integer attribute to an existing DB2 datasource. | set-dataSource-integer-attribute
jndi
attributeName
attributeValue
|
Update the settings of a work manager if the work manager exists. | run update-work-manager-thread name
minThreads
maxThreads
threadPriority
|
Deploy an EAR to WebSphere Application Server. | run install-ear
transaction-server-ear-name
|
Install OIDC application to the application server run time. | run install-oidc
ear-name
|
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 HCL Commerce session timeout. | run set-sso-keep-alive-session
value
For more information, see Enabling single sign-on. |
Change JVM property (wc.remote.kafka, wc.remote.kafka.topicPrefix, wc.remote.zookeeper, wc.store.remote.kafka, wc.store.remote.kafka.topicPrefix) |
Note: The zookeeper
servers are being used for script backward compatibility,
hence this parameter should be ignored.
|
Change JVM property(wc.remote.kafka, wc.remote.kafka.topicPrefix, wc.remote.zookeeper, wc.store.remote.kafka, wc.store.remote.kafka.topicPrefix) |
Note: The zookeeper
servers are being used for script backward compatibility,
hence this parameter should be ignored.
|
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
|
Update the datasource information in the wc-server.xml file. | run update-wcserver-db dbType
dbHost
dbPort
dbname
dbauser
dbapassword
dbuser
dbpassword
nodeName
|
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 |
Set resource adaptor connection pool properties. | run set-resource-adaptor-connection-pool-props
uriName
connectionTimeout
maxConnections
minConnections
reapTime
unusedTimeout
agedTimeout
purgePolicy Where:
|
For WebSphere eXtreme Scale integration, create an extreme scale domain. Tip: For more information about this integration,
see Integrating HCL Commerce
version 9 with WebSphere eXtreme Scale.
|
run create-XS-Domain hostname
port
|
For WebSphere eXtreme Scale integration, connect the baseCache
instance to WebSphere eXtreme Scale cache provider. Tip: For more information about this integration,
see Integrating HCL Commerce
version 9 with WebSphere eXtreme Scale.
|
run connect-basecache-wxs size
gridName
mapName
|
For WebSphere eXtreme Scale integration, connect the object cache
instance to the WebSphere eXtreme Scale cache provider. Tip: For more information
about this integration, see Integrating HCL Commerce
version 9 with WebSphere eXtreme Scale.
|
run connect-objectcache-wxs jndi
size
gridName
mapName
|
Update datasource server. | update-wc-server-datasource dbType
dbHost
dbPort
dbname
dbauser
dbapassword
dbuser
dbpassword Where,
|