protected final void unlockMessages ( final List messageList , boolean incrementDeliveryCount ) throws ResourceException { final String methodName = "unlockMessages" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , messageList ) ; } if ( messageList . size ( ) > 0 ) { List listOfSIBusMessages = new ArrayList ( ) ; try { for ( int i = 0 ; i < messageList . size ( ) ; i ++ ) { listOfSIBusMessages . add ( ( ( DispatchableMessage ) messageList . get ( i ) ) . getMessage ( ) ) ; } _session . unlockSet ( getMessageHandles ( listOfSIBusMessages ) , incrementDeliveryCount ) ; } catch ( final SIException exception ) { FFDCFilter . processException ( exception , CLASS_NAME + "." + methodName , "1:1200:1.73" , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEventEnabled ( ) ) { SibTr . exception ( this , TRACE , exception ) ; } throw new ResourceAdapterInternalException ( NLS . getFormattedMessage ( ( "UNLOCK_EXCEPTION_CWSIV0601" ) , new Object [ ] { exception , listOfSIBusMessages } , null ) , exception ) ; } catch ( final SIErrorException exception ) { FFDCFilter . processException ( exception , CLASS_NAME + "." + methodName , "1:1212:1.73" , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEventEnabled ( ) ) { SibTr . exception ( this , TRACE , exception ) ; } throw new ResourceAdapterInternalException ( NLS . getFormattedMessage ( ( "UNLOCK_EXCEPTION_CWSIV0601" ) , new Object [ ] { exception , listOfSIBusMessages } , null ) , exception ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . exit ( this , TRACE , methodName ) ; } }
Unlocks a list of messages .