Package org.jboss.invocation

Examples of org.jboss.invocation.ServiceUnavailableException


         // Clear the targets to simulate exhausting them all
         FamilyClusterInfo info = ClusteringTargetsRepository.getFamilyClusterInfo(proxyFamilyName);
         for (Object target: info.getTargets())
            info.removeDeadTarget(target);
        
         throw new ServiceUnavailableException("Service unavailable",
                                               new Exception("Test"));
      }

      return getNext().invoke(mi);
   }
View Full Code Here


         }
      }

      if(failoverAuthorized == false)
      {
         throw new ServiceUnavailableException("Service unavailable (failover not possible inside a user transaction) for " +
                                               invocation.getObjectName() + " calling method " + invocation.getMethod(),
                                               lastException);
      }
      else
      {
         throw new ServiceUnavailableException("Service unavailable for " +
                                               invocation.getObjectName() + " calling method " + invocation.getMethod(),
                                               lastException);
      }
   }
View Full Code Here

         failoverCounter ++;
      }
     
      // if we get here this means list was exhausted
      String msg = failoverAuthorized ? "Service unavailable." : "Service unavailable (failover not possible inside a user transaction).";
      throw new ServiceUnavailableException(msg, lastException);
   }
View Full Code Here

              
               invocation.getTransientPayload().put("TX_STICKY_TARGET", stickyTarget);                 
            }
            else
            {
               throw new ServiceUnavailableException("Transaction sticky target is no longer available, so invocation needs to be halted");
            }
         }
      }
   }
View Full Code Here

         }
      }

      if(failoverAuthorized == false)
      {
         throw new ServiceUnavailableException("Service unavailable (failover not possible inside a user transaction) for " +
                                               invocation.getObjectName() + " calling method " + invocation.getMethod(),
                                               lastException);
      }
      else
      {
         throw new ServiceUnavailableException("Service unavailable for " +
                                               invocation.getObjectName() + " calling method " + invocation.getMethod(),
                                               lastException);
      }
   }
View Full Code Here

         FamilyClusterInfo info = ClusteringTargetsRepository.getFamilyClusterInfo(proxyFamilyName);
         List targets = info.getTargets();
         for (Iterator it = targets.iterator(); it.hasNext(); )
            info.removeDeadTarget(it.next());
        
         throw new ServiceUnavailableException("Service unavailable",
                                               new Exception("Test"));
      }

      return getNext().invoke(mi);
   }
View Full Code Here

         String msg = "Service unavailable.";
         if (failoverAuthorized == false)
         {
            msg = "Service unavailable (failover not possible inside a user transaction).";
         }
         throw new ServiceUnavailableException(msg, lastException);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.invocation.ServiceUnavailableException

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.