log.error(message);
throw new SandeshaException(message);
}
SenderBeanMgr retransmitterMgr = storageManager.getSenderBeanMgr();
RMSBeanMgr rmsBeanMgr = storageManager.getRMSBeanMgr();
RMSBean rmsBean = rmsBeanMgr.retrieve(createSeqMsgId);
if (rmsBean == null) {
if (log.isDebugEnabled())
log.debug("Exit: FaultManager::processCreateSequenceRefusedFault Unable to find RMSBean");
return;
}
if(rmsBean.getSequenceID()!=null){
//we got a cseqRefused but the sequence is already setup - this implies a timing condition whereby several resends of the cSeqReq have been sent out.
//The best thing to do here is to ignore it.
if (log.isDebugEnabled())
log.debug("Exit: FaultManager::processCreateSequenceRefusedFault Sequence already established - no requirement to cleanup");
return;
}
// Indicate that there was an error when sending the Create Sequence.
rmsBean.setLastSendError(fault);
// Mark the sequence as terminated
rmsBean.setTerminated(true);
// Update the RMSBean
rmsBeanMgr.update(rmsBean);
SenderBean createSequenceSenderBean = retransmitterMgr.retrieve(createSeqMsgId);
if (createSequenceSenderBean == null)
throw new SandeshaException(SandeshaMessageHelper.getMessage(SandeshaMessageKeys.createSeqEntryNotFound));