Configuring distributed transaction service in websphere

ibm websphere
IBM WAS viewing product and process information and configuring runtime transactions
#----------------------------------------------------------------------------
#-- Viewing product and process information 
#----------------------------------------------------------------------------
set aRunningServer [$AdminControl queryNames type=Server,name=myServer,cell=myCell,node=myNode,*]
 $AdminControl getAttribute $aRunningServer serverVersion
 $AdminControl getAttributes $aRunningServer {pid cellName nodeName processType}

#----------------------------------------------------------------------------
#-- Configuring run-time transaction service 
#---------------------------------------------------------------------------

set aRuntimeTranService [$AdminControl queryNames type=TransactionService,name=myServer,cell=myCell,node=myNode,*]
$AdminControl getAttributes $aRuntimeTranService {transactionLogDirectory totalTranLifetimeTimeout clientInactivityTimeout}
set lifetimeTimeoutAttr [list totalTranLifetimeTimeout 180]
set inactTimeoutAttr [list clientInactivityTimeout 30]
set attrs [list $lifetimeTimeoutAttr $inactTimeoutAttr]
$AdminControl setAttributes $aRuntimeTranService $attrs

In case of any ┬ęCopyright or missing credits issue please check CopyRights page for faster resolutions.

Leave a Reply