getTrxName must return null instead of empty string is trx name is not set in context.
This commit is contained in:
parent
c66f9c6f10
commit
3f6be1c60d
|
@ -348,7 +348,11 @@ public abstract class AbstractElementHandler implements ElementHandler {
|
|||
* @return transaction name
|
||||
*/
|
||||
protected String getTrxName(Properties ctx) {
|
||||
return Env.getContext(ctx, "TrxName");
|
||||
String trxName = Env.getContext(ctx, "TrxName");
|
||||
if (trxName != null && trxName.trim().length() > 0)
|
||||
return trxName;
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue