Do not use WebLogic transaction object

This rule detects the use of WebLogic weblogic.transaction.Transaction objects in a Java file. Review the JTA support topic in the WebSphere Application Server documentation.

The following cases are detected:

  1. Field Declaration (object level)
    Example: private Transaction t ;

  2. Method Variable
    Example:
    private void doX(){
        Transaction t;
    }

  3. Cast Expression
    Example: Transaction t = (Transaction) someOtherObject;

The object is detected if it is used as a qualified name, such as weblogic.transaction.Transaction .

The object is also detected if it is used as a simple name, such as Transaction , and either of the following two import statements exist:
import weblogic.transaction.*;
or
import weblogic.transaction.Transaction;