Package org.jboss.jms.client

Examples of org.jboss.jms.client.FailoverCommandCenter


      return fcc;
   }

   public void initializeFailoverCommandCenter()
   {
      fcc = new FailoverCommandCenter(this);
   }
View Full Code Here


               {
                 ConnectionState state = (ConnectionState)((DelegateSupport)cd).getState();
 
                 state.initializeFailoverCommandCenter();
 
                 FailoverCommandCenter fcc = state.getFailoverCommandCenter();
 
                 // add a connection listener to detect failure; the consolidated remoting connection
                 // listener must be already in place and configured
                 state.getRemotingConnection().getConnectionListener().
                    setDelegateListener(new ConnectionFailureListener(fcc, state.getRemotingConnection()));
View Full Code Here

      return fcc;
   }

   public void initializeFailoverCommandCenter()
   {
      fcc = new FailoverCommandCenter(this);
   }
View Full Code Here

               {
                 ConnectionState state = (ConnectionState)((DelegateSupport)cd).getState();
 
                 state.initializeFailoverCommandCenter();
 
                 FailoverCommandCenter fcc = state.getFailoverCommandCenter();
 
                 // add a connection listener to detect failure; the consolidated remoting connection
                 // listener must be already in place and configured
                 state.getRemotingConnection().getConnectionListener().
                    setDelegateListener(new ConnectionFailureListener(fcc, state.getRemotingConnection()));
View Full Code Here

      return fcc;
   }

   public void initializeFailoverCommandCenter()
   {
      fcc = new FailoverCommandCenter(this);
   }
View Full Code Here

      int prefetchSize = consumerState.getBufferSize();
      Executor executor = sessionState.getExecutor();
      int maxDeliveries = consumerState.getMaxDeliveries();
      long redeliveryDelay = consumerState.getRedeliveryDelay();
     
      FailoverCommandCenter fcc = connectionState.getFailoverCommandCenter();
     
      //We need the queue name for recovering any deliveries after failover
      String queueName = null;
      if (consumerState.getSubscriptionName() != null)
      {
View Full Code Here

/* 266 */     return this.fcc;
/*     */   }
/*     */
/*     */   public void initializeFailoverCommandCenter()
/*     */   {
/* 271 */     this.fcc = new FailoverCommandCenter(this);
/*     */   }
View Full Code Here

/*     */       }
/*     */
/*  84 */       this.connectionState = ((ConnectionState)hs);
/*     */     }
/*     */
/*  87 */     FailoverCommandCenter fcc = this.connectionState.getFailoverCommandCenter();
/*     */
/*  90 */     if (fcc == null)
/*     */     {
/*  92 */       return invocation.invokeNext();
/*     */     }
/*     */
/*  95 */     FailoverValve2 valve = fcc.getValve();
/*     */
/*  97 */     JMSRemotingConnection remotingConnection = null;
/*  98 */     String methodName = ((MethodInvocation)invocation).getMethod().getName();
/*     */
/* 100 */     if (methodName.equals("startAfterFailover"))
/*     */     {
/* 103 */       return invocation.invokeNext();
/*     */     }
/*     */
/* 106 */     boolean left = false;
/*     */     try
/*     */     {
/* 110 */       valve.enter();
/*     */
/* 113 */       remotingConnection = fcc.getRemotingConnection();
/* 114 */       Object localObject1 = invocation.invokeNext();
/*     */       return localObject1;
/*     */     }
/*     */     catch (MessagingNetworkFailureException e)
/*     */     {
/* 118 */       valve.leave();
/* 119 */       left = true;
/*     */
/* 121 */       log.debug(this + " detected network failure, putting " + methodName + "() on hold until failover completes");
/*     */
/* 124 */       fcc.failureDetected(e, this, remotingConnection);
/*     */
/* 129 */       if ((((invocation.getTargetObject() instanceof ClientSessionDelegate)) && (methodName.equals("send"))) || (((invocation.getTargetObject() instanceof ClientConnectionDelegate)) && (methodName.equals("sendTransaction"))))
/*     */       {
/* 132 */         log.trace(this + " caught " + methodName + "() invocation, enabling check for duplicates");
/*     */
View Full Code Here

/*     */           {
/* 147 */             ConnectionState state = (ConnectionState)cd.getState();
/*     */
/* 149 */             state.initializeFailoverCommandCenter();
/*     */
/* 151 */             FailoverCommandCenter fcc = state.getFailoverCommandCenter();
/*     */
/* 155 */             state.getRemotingConnection().getConnectionListener().setDelegateListener(new ConnectionFailureListener(fcc, state.getRemotingConnection()));
/*     */
/* 158 */             log.trace(this + " installed failure listener on " + cd);
/*     */
View Full Code Here

TOP

Related Classes of org.jboss.jms.client.FailoverCommandCenter

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.