void notifyMessagePreConsume ( SITransaction transaction ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "notifyMessagePreConsume" , transaction ) ; if ( ! ( transaction instanceof SIXAResource ) ) { // We wish to increment this count even under auto_ack, since we use // it to determine whether the onMessage calls recover. uncommittedReceiveCount ++ ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) && ( uncommittedReceiveCount % 100 == 0 ) ) { SibTr . debug ( this , tc , "session " + this + " uncommittedReceiveCount : " + uncommittedReceiveCount ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "notifyMessagePreConsume" ) ; }
This method should be called when a message has been received by JMS consumer code but not yet delivered to user code .