Package org.jboss.jms.client.container

Examples of org.jboss.jms.client.container.ConnectionFailureListener


      // forward the exception to delegate listener and JMS ExceptionListeners; synchronize
      // to avoid race conditions

      ExceptionListener jmsExceptionListenerCopy;
 
      ConnectionFailureListener remotingListenerCopy;

      synchronized(this)
      {
         jmsExceptionListenerCopy = jmsExceptionListener;

         remotingListenerCopy = remotingListener;
      }
     
      boolean forwardToJMSListener = true;

      if (remotingListenerCopy != null)
      {
         try
         {
            log.trace(this + " forwarding remoting failure \"" + throwable + "\" to " + remotingListenerCopy);
           
            //We only forward to the JMS listener if failover did not successfully handle the exception
            //If failover handled the exception transparently then there is effectively no problem
            //with the logical connection that the client needs to be aware of
            forwardToJMSListener = !remotingListenerCopy.handleConnectionException(throwable, client);
         }
         catch(Exception e)
         {
            log.warn("Failed to forward " + throwable + " to " + remotingListenerCopy, e);
         }
View Full Code Here


      // forward the exception to delegate listener and JMS ExceptionListeners; synchronize
      // to avoid race conditions

      ExceptionListener jmsExceptionListenerCopy;
 
      ConnectionFailureListener remotingListenerCopy;

      synchronized(this)
      {
         jmsExceptionListenerCopy = jmsExceptionListener;

         remotingListenerCopy = remotingListener;
      }
     
      boolean forwardToJMSListener = true;

      if (remotingListenerCopy != null)
      {
         try
         {
            log.trace(this + " forwarding remoting failure \"" + throwable + "\" to " + remotingListenerCopy);
           
            //We only forward to the JMS listener if failover did not successfully handle the exception
            //If failover handled the exception transparently then there is effectively no problem
            //with the logical connection that the client needs to be aware of
            forwardToJMSListener = !remotingListenerCopy.handleConnectionException(throwable, client);
         }
         catch(Exception e)
         {
            log.warn("Failed to forward " + throwable + " to " + remotingListenerCopy, e);
         }
View Full Code Here

/*     */   private ConnectionFailureListener remotingListener;
/*     */
/*     */   public void handleConnectionException(Throwable throwable, Client client)
/*     */   {
/*     */     ExceptionListener jmsExceptionListenerCopy;
/*     */     ConnectionFailureListener remotingListenerCopy;
/*  63 */     synchronized (this)
/*     */     {
/*  65 */       jmsExceptionListenerCopy = this.jmsExceptionListener;
/*     */
/*  67 */       remotingListenerCopy = this.remotingListener;
/*     */     }
/*     */
/*  70 */     boolean forwardToJMSListener = true;
/*     */
/*  72 */     if (remotingListenerCopy != null)
/*     */     {
/*     */       try
/*     */       {
/*  76 */         log.trace(this + " forwarding remoting failure \"" + throwable + "\" to " + remotingListenerCopy);
/*     */
/*  81 */         forwardToJMSListener = !remotingListenerCopy.handleConnectionException(throwable, client);
/*     */       }
/*     */       catch (Exception e)
/*     */       {
/*  85 */         log.warn("Failed to forward " + throwable + " to " + remotingListenerCopy, e);
/*     */       }
View Full Code Here

TOP

Related Classes of org.jboss.jms.client.container.ConnectionFailureListener

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.