@Override
    public void eventExpiryNotification(Transaction transaction) throws SevereMessageStoreException
    {
        super.eventExpiryNotification(transaction);

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "eventExpiryNotification", transaction);

        if (failedInitInRestore)
        {
            initialiseNonPersistent(true);
        }

        if (TraceComponent.isAnyTracingEnabled() && UserTrace.tc_mt.isDebugEnabled())
        {
            if (getJSMessage(true).isApiMessage())
            {

                String apiMsgId = null;

                if (getJSMessage(true) instanceof JsApiMessage)
                    apiMsgId = ((JsApiMessage) getJSMessage(true)).getApiMessageId();
                else
                {
                    if (getJSMessage(true).getApiMessageIdAsBytes() != null)
                        apiMsgId = getJSMessage(true).getApiMessageIdAsBytes().toString();
                }

                SibTr.debug(this, UserTrace.tc_mt,
                            nls_mt.getFormattedMessage(
                                                       "MESSAGE_EXPIRED_CWSJU0011",
                                                       new Object[] {
                                                                     apiMsgId,
                                                                     getJSMessage(true).getSystemMessageId(),
                                                                     debugName },
                                                       null));
            }
        }

        if (EXPIRY_NOTIFICATION != null)
        {
            try
            {
                //Check that the report expiry is not null as we might be here because of trace been on
                if (getJSMessage(true).getReportExpiry() != null)
                    EXPIRY_NOTIFICATION.messageEventOccurred(MessageEvents.EXPIRY_NOTIFICATION, this, transaction);
            } catch (SIException e)
            {
                FFDCFilter.processException(
                                            e,
                                            "com.ibm.ws.sib.processor.impl.store.items.MessageItem.eventExpiryNotification",
                                            "1:1096:1.244.1.40",
                                            this);

                SibTr.exception(tc, e);

                if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                    SibTr.exit(this, tc, "eventExpiryNotification", e);

                throw new SIErrorException(e);
            }
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "eventExpiryNotification");

    }
@ Override public void eventExpiryNotification ( Transaction transaction ) throws SevereMessageStoreException { super . eventExpiryNotification ( transaction ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "eventExpiryNotification" , transaction ) ; if ( failedInitInRestore ) { initialiseNonPersistent ( true ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && UserTrace . tc_mt . isDebugEnabled ( ) ) { if ( getJSMessage ( true ) . isApiMessage ( ) ) { String apiMsgId = null ; if ( getJSMessage ( true ) instanceof JsApiMessage ) apiMsgId = ( ( JsApiMessage ) getJSMessage ( true ) ) . getApiMessageId ( ) ; else { if ( getJSMessage ( true ) . getApiMessageIdAsBytes ( ) != null ) apiMsgId = getJSMessage ( true ) . getApiMessageIdAsBytes ( ) . toString ( ) ; } SibTr . debug ( this , UserTrace . tc_mt , nls_mt . getFormattedMessage ( "MESSAGE_EXPIRED_CWSJU0011" , new Object [ ] { apiMsgId , getJSMessage ( true ) . getSystemMessageId ( ) , debugName } , null ) ) ; } } if ( EXPIRY_NOTIFICATION != null ) { try { if ( getJSMessage ( true ) . getReportExpiry ( ) != null ) EXPIRY_NOTIFICATION . messageEventOccurred ( MessageEvents . EXPIRY_NOTIFICATION , this , transaction ) ; } catch ( SIException e ) { FFDCFilter . processException ( e , "com.ibm.ws.sib.processor.impl.store.items.MessageItem.eventExpiryNotification" , "1:1096:1.244.1.40" , this ) ; SibTr . exception ( tc , e ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "eventExpiryNotification" , e ) ; throw new SIErrorException ( e ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "eventExpiryNotification" ) ; }
@see com.ibm.ws.sib.msgstore.AbstractItem#eventExpiryNotification(Transaction)