// such as in MQSeries
// xaresource_ = resource.getXAResource();
// re-added xaresource_ setting here, because for JMS
// there is no threading and no thread-surpassing
// reuse -> we can use the same and set it here.
TransactionControl control = transaction.getTransactionControl ();
// null for some testing programs
if ( control != null ) {
timeout_ = (int) transaction.getTransactionControl ().getTimeout () / 1000;
}