コード例 #1
0
 public synchronized void addMessage(MessageBaseImpl message) {
   super.addMessage(message);
   if (!isPersisted() && "CG".equals(message.getMessageType())) {
     try {
       IMessageBusiness dbMessageBusiness = MessageDAOFactory.getDBMessageBusiness();
       updateTransaction(MessageCodeConstants.CSOR_IN_PROGRESS);
       TransactionMessageImpl txMessage =
           dbMessageBusiness.loadTransactionMessage(
               messageId, MessageCodeConstants.OUTGOING, false);
       ApplicantBusiness appBusiness =
           (ApplicantBusiness) MessageDAOFactory.getAppBeanInstance("applicantBusiness");
       Applicant applicant = appBusiness.findBaseAppById(txMessage.getPersonId());
       applicant.setCsorIndicator(new Boolean(true));
       appBusiness.saveOrUpdate(applicant);
     } catch (HibernateException he) {
       AAMVALogger.error(message.getMessageId(), this.getClass(), he.getMessage());
       throw he;
     }
   }
 }
コード例 #2
0
 private void init() throws Exception {
   historyCheckBusiness =
       (HistoryCheckBusiness) MessageDAOFactory.getAppBeanInstance("historyCheckBusiness");
 }