public static void traceCommon ( int opType , String txId , String desc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { StringBuffer sbuf = new StringBuffer ( ) ; sbuf . append ( TxLifeCycle_State_Type_Str ) . append ( DataDelimiter ) . append ( TxLifeCycle_State_Type ) . append ( DataDelimiter ) . append ( opType ) . append ( DataDelimiter ) . append ( txId ) . append ( DataDelimiter ) . append ( desc ) ; Tr . debug ( tc , sbuf . toString ( ) ) ; } }
This is called by the EJB container server code to write a common record to the trace log if enabled .