Package org.apache.sandesha2.storage

Examples of org.apache.sandesha2.storage.Transaction.commit()


        //Sender bean is not valid for re-sending.
       
        if (log.isDebugEnabled()) log.debug("Exit: Sender::internalRun, no message for this sequence");
       
        if(transaction != null && transaction.isActive()) {
          transaction.commit();
          transaction = null;
        }
       
        return false; // Move on to the next sequence in the list
      }
View Full Code Here


                  workId);
          log.debug("Exit: Sender::internalRun, " + message + ", sleeping");
        }
       
        if(transaction != null && transaction.isActive()) {
          transaction.commit();
          transaction = null;
        }
       
        return true;
      }
View Full Code Here

       
        return true;
      }

      //commiting the transaction here to release resources early.
      if(transaction != null && transaction.isActive()) transaction.commit();
      transaction = null;

      // start a worker which will work on this messages.
      SenderWorker worker = new SenderWorker(context, senderBean, rmVersion);
      worker.setLock(getWorkerLock());
View Full Code Here

            storageManager.getRMDBeanMgr().update(rmdBean);
          }               
        }
      }      
     
      if(transaction != null && transaction.isActive()) transaction.commit();
     
    } catch (SandeshaException e) {
      if (log.isErrorEnabled())
        log.error(e);
    } finally {
View Full Code Here

          // Update the bean
          manager.getSenderBeanMgr().update(bean);
        }
      }
 
      if(transaction != null && transaction.isActive()) transaction.commit();
      transaction = null;
     
    } catch(Exception e) {
      // There isn't much we can do here, so log the exception and continue.
      if(log.isDebugEnabled()) log.debug("Exception", e);
View Full Code Here

        // Update the bean so that we won't emit another message for another TRANSPORT_WAIT_TIME
        bean.setTimeToSend(System.currentTimeMillis());
        manager.getSenderBeanMgr().update(bean);
      }
 
      if(tran != null && tran.isActive()) tran.commit();
      tran = null;
 
    } catch(Exception e) {
      // There isn't much we can do here, so log the exception and continue.
      if(log.isDebugEnabled()) log.debug("Exception", e);
View Full Code Here

      // validating the message
      MessageValidator.validateIncomingMessage(rmMsgCtx, storageManager);
     
      // commit the current transaction
      if(transaction != null && transaction.isActive()) transaction.commit();
      transaction = storageManager.getTransaction();

      // Process Ack headers in the message
      AcknowledgementProcessor ackProcessor = new AcknowledgementProcessor();
      ackProcessor.processAckHeaders(rmMsgCtx);
View Full Code Here

      // Process Ack headers in the message
      AcknowledgementProcessor ackProcessor = new AcknowledgementProcessor();
      ackProcessor.processAckHeaders(rmMsgCtx);

      // commit the current transaction
      if(transaction != null && transaction.isActive()) transaction.commit();
      transaction = storageManager.getTransaction();

      // Process Ack Request headers in the message
      AckRequestedProcessor reqProcessor = new AckRequestedProcessor();
      if(reqProcessor.processAckRequestedHeaders(rmMsgCtx)){
View Full Code Here

      // Process MessagePending headers
      MessagePendingProcessor pendingProcessor = new MessagePendingProcessor();
      pendingProcessor.processMessagePendingHeaders(rmMsgCtx);

      // commit the current transaction
      if(transaction != null && transaction.isActive()) transaction.commit();
      transaction = storageManager.getTransaction();

      // Process the Sequence header, if there is one
      SequenceProcessor seqProcessor = new SequenceProcessor();
      returnValue = seqProcessor.processSequenceHeader(rmMsgCtx, transaction);
View Full Code Here

      // Process the Sequence header, if there is one
      SequenceProcessor seqProcessor = new SequenceProcessor();
      returnValue = seqProcessor.processSequenceHeader(rmMsgCtx, transaction);

      // commit the current transaction
      if(transaction != null && transaction.isActive()) transaction.commit();
      transaction = null;
     
    } catch (Exception e) {
      if (log.isDebugEnabled())
        log.debug("SandeshaInHandler::invoke Exception caught during processInMessage", e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.