Package org.apache.sandesha2.storage

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


          }
        }

      }
    } finally  {
      transaction.commit();
    }   
   
    return service;
  }
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

              }
             
              rmdBeanMgr.update(rMDBean);
            }
           
            if(transaction != null && transaction.isActive()) transaction.commit();
            transaction = null;
          }
          catch(Exception e){
            // Just log the error
            if(log.isDebugEnabled()) log.debug("Exception", e);
View Full Code Here

        }

        String messageContextKey = bean.getMessageContextRefKey();
       
        if(transaction != null) {
          transaction.commit();
          transaction = null;
        }

        // start a new worker thread and let it do the invocation.
        InvokerWorker worker = new InvokerWorker(context,
View Full Code Here

        getWorkerLock().addWork(workId);
       
        processedMessage = true;
      }
     
      if(transaction != null && transaction.isActive()) transaction.commit();
      transaction = null;
    } catch (Exception e) {
      String message = SandeshaMessageHelper
          .getMessage(SandeshaMessageKeys.invokeMsgError);
      if(log.isDebugEnabled()) log.debug(message, e);
View Full Code Here

        StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(context, context.getAxisConfiguration());       
        transaction = storageManager.getTransaction();

        msgProcessor.processInMessage(rmMsgCtx, transaction);

        if(transaction != null && transaction.isActive()) transaction.commit();
          transaction = null;

      } catch (Exception e) {
        if (log.isDebugEnabled())
          log.debug("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

      sequenceID = SandeshaUtil.getSequenceIDFromInternalSequenceID(internalSequenceID, storageManager);
    }
    finally
    {
      // Commit the tran whatever happened
      if(transaction != null) transaction.commit();
    }
   
    if (sequenceID == null)
      sequenceID = Sandesha2Constants.TEMP_SEQUENCE_ID; 
   
View Full Code Here

        }
       
        invoker.forceInvokeOfAllMessagesCurrentlyOnSequence(configContext, sequenceID, allowLaterDeliveryOfMissingMessages);     
      }
     
      if(reportTransaction != null && reportTransaction.isActive()) reportTransaction.commit();
      reportTransaction = null;

    } catch (Exception e) {
      // Just log the exception
      if(log.isDebugEnabled()) log.debug("Exception", e);
View Full Code Here

      sequenceID = SandeshaUtil.getSequenceIDFromInternalSequenceID(internalSequenceID, storageManager);
    }
    finally
    {
      // Commit the tran whatever happened
      if(transaction != null) transaction.commit();
    }
   
    if (sequenceID == null)
      sequenceID = Sandesha2Constants.TEMP_SEQUENCE_ID; 
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.