Package org.jboss.jms.delegate

Examples of org.jboss.jms.delegate.ConnectionDelegate


         {
            throw new TransactionInProgressException("Cannot call commit on an XA session");
         }
  
         ConnectionState connState = (ConnectionState)state.getParent();
         ConnectionDelegate conn = (ConnectionDelegate)connState.getDelegate();
    
         try
         {
            connState.getResourceManager().commitLocal((LocalTx)state.getCurrentTxId(), conn);
         }
View Full Code Here


      // The remoting connection was replaced by a new one..
      // we have to set the connection state on the ConnectionListener to avoid leaks
      remotingConnection.getConnectionListener().setConnectionState(this);

      ConnectionDelegate newDelegate = (ConnectionDelegate)newState.getDelegate();
     
      for(Iterator i = getChildren().iterator(); i.hasNext(); )
      {                
         SessionState sessionState = (SessionState)i.next();
        
         ClientSessionDelegate sessionDelegate = (ClientSessionDelegate)sessionState.getDelegate();

         // create a new session on the new connection for each session on the old connection
         ClientSessionDelegate newSessionDelegate = (ClientSessionDelegate)newDelegate.
            createSessionDelegate(sessionState.isTransacted(),
                                  sessionState.getAcknowledgeMode(),
                                  sessionState.isXA());

         sessionDelegate.synchronizeWith(newSessionDelegate);
View Full Code Here

      {
         throw new TransactionInProgressException("Cannot call commit on an XA session");
      }

      ConnectionState connState = (ConnectionState)state.getParent();
      ConnectionDelegate conn = (ConnectionDelegate)connState.getDelegate();
 
      try
      {
         connState.getResourceManager().commitLocal((LocalTx)state.getCurrentTxId(), conn);
      }
View Full Code Here

      // The remoting connection was replaced by a new one..
      // we have to set the connection state on the ConnectionListener to avoid leaks
      remotingConnection.getConnectionListener().setConnectionState(this);

      ConnectionDelegate newDelegate = (ConnectionDelegate)newState.getDelegate();
     
      for(Iterator i = getChildren().iterator(); i.hasNext(); )
      {                
         SessionState sessionState = (SessionState)i.next();
        
         ClientSessionDelegate sessionDelegate = (ClientSessionDelegate)sessionState.getDelegate();

         // create a new session on the new connection for each session on the old connection
         ClientSessionDelegate newSessionDelegate = (ClientSessionDelegate)newDelegate.
            createSessionDelegate(sessionState.isTransacted(),
                                  sessionState.getAcknowledgeMode(),
                                  sessionState.isXA(), sessionState.isCC());

         sessionDelegate.synchronizeWith(newSessionDelegate);
View Full Code Here

         {
            throw new TransactionInProgressException("Cannot call commit on an XA session");
         }
  
         ConnectionState connState = (ConnectionState)state.getParent();
         ConnectionDelegate conn = (ConnectionDelegate)connState.getDelegate();
    
         try
         {
            connState.getResourceManager().commitLocal((LocalTx)state.getCurrentTxId(), conn);
         }
View Full Code Here

/* 153 */     this.serverID = newState.serverID;
/* 154 */     this.versionToUse = newState.versionToUse;
/*     */
/* 158 */     this.remotingConnection.getConnectionListener().setConnectionState(this);
/*     */
/* 160 */     ConnectionDelegate newDelegate = (ConnectionDelegate)newState.getDelegate();
/*     */
/* 162 */     for (Iterator i = getChildren().iterator(); i.hasNext(); )
/*     */     {
/* 164 */       SessionState sessionState = (SessionState)i.next();
/*     */
/* 166 */       ClientSessionDelegate sessionDelegate = (ClientSessionDelegate)sessionState.getDelegate();
/*     */
/* 169 */       ClientSessionDelegate newSessionDelegate = (ClientSessionDelegate)newDelegate.createSessionDelegate(sessionState.isTransacted(), sessionState.getAcknowledgeMode(), sessionState.isXA());
/*     */
/* 174 */       sessionDelegate.synchronizeWith(newSessionDelegate);
/*     */     }
/*     */
/* 178 */     this.fcc = newState.fcc;
View Full Code Here

/*     */     {
/* 549 */       throw new TransactionInProgressException("Cannot call commit on an XA session");
/*     */     }
/*     */
/* 552 */     ConnectionState connState = (ConnectionState)state.getParent();
/* 553 */     ConnectionDelegate conn = (ConnectionDelegate)connState.getDelegate();
/*     */     try
/*     */     {
/* 557 */       connState.getResourceManager().commitLocal((LocalTx)state.getCurrentTxId(), conn);
/*     */     }
/*     */     finally
View Full Code Here

TOP

Related Classes of org.jboss.jms.delegate.ConnectionDelegate

Copyright © 2018 www.massapicom. 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.