Package org.apache.sandesha2.storage

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


      // 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

      if(entry.isRmSource()) {
        pollRMSSide(entry, forcePoll);
      } else {
        pollRMDSide(entry, forcePoll);
      }
      if(t != null) t.commit();
      t = null;

    } catch (Exception e) {
      if(log.isDebugEnabled()) log.debug("Exception", e);
    } finally {
View Full Code Here

            Sandesha2Constants.SPEC_VERSIONS.v1_0,
            rmMsgCtx.getMessageContext().getAxisService());
        rmMsgCtx.getMessageContext().setAxisOperation(duplicateMessageOperation);
      }
     
      if(transaction != null && transaction.isActive()) transaction.commit();
      transaction = null;
    }
    finally {
      if (transaction != null && transaction.isActive())
        transaction.rollback();
View Full Code Here

        }
        return true;
      }

      if(transaction != null) {
        transaction.commit();
        transaction = null;
      }

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

      // If we got to here then we found work to do on the sequence, so we should
      // remember not to sleep at the end of the list of sequences.
      processedMessage = true;
     
      if(transaction != null && transaction.isActive()) transaction.commit();
      transaction = null;

    } catch (Exception e) {

      // TODO : when this is the client side throw the exception to
View Full Code Here

            storageManager.getRMDBeanMgr().update(rmdBean);
          }               
        }
      }      
     
      if(transaction != null && transaction.isActive()) transaction.commit();
      transaction = null;
     
    } catch (SandeshaException e) {
      if (log.isErrorEnabled())
        log.error(e);
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

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.