* [ 1666919 ] Transaction handling different for local and remote process

This commit is contained in:
Heng Sin Low 2007-02-23 09:47:26 +00:00
parent 40d6e76458
commit 32c2a8ecbb
1 changed files with 3 additions and 1 deletions

View File

@ -260,7 +260,9 @@ public class ServerBean implements SessionBean
return pi;
}
// Start Process
Trx trx = Trx.get(Trx.createTrxName("ServerPrc"), true);
String trxName = pi.getTransactionName();
if (trxName == null) trxName = Trx.createTrxName("ServerPrc");
Trx trx = Trx.get(trxName, true);
try
{
boolean ok = process.startProcess (ctx, pi, trx);