Example: Configuring transaction properties for a server using wsadmin
The following example configures the run-time transaction properties for an application server.
- Identify the transaction service MBean for the application server.
set ts [$AdminControl completeObjectName cell=mycell,node=mynode,process=server1,type=TransactionService,*]This command returns the transaction service MBean for server1Example output:
WebSphere:cell=mycell,name=TransactionService,mbeanIdentifier=TransactionService,type=TransactionService,node=mynode,process=server1- Modify the attributes. The following example is for the Windows operating system:
$AdminControl invoke $ts {{transactionLogDirectory c:/WebSphere/AppServer/tranlog/server1} {clientInactivityTimeout 30} {totalTranLifetimeTimeout 180}}The clientInactivityTimeout is in seconds. The totalTranLifetimeTimeout is in milliseconds. A value of 0 in either attribute means no timeout limit.