Package org.jboss.invocation

Examples of org.jboss.invocation.InvocationType


      {
         throw e;
      }
      catch (Exception e)
      {
         InvocationType type = mi.getType();
         boolean isLocal = (type == InvocationType.LOCAL || type == InvocationType.LOCALHOME);
         if (isLocal)
            throw new EJBException("Unable to get an instance from the pool/cache", e);
         else
            throw new RemoteException("Unable to get an intance from the pool/cache", e);
View Full Code Here


         throw new EJBException("checkSecurityAssociation",
            new SecurityException("Role mapping manager has not been set"));
      }

      // Get the method permissions
      InvocationType iface = mi.getType();
      Set methodRoles = container.getMethodPermissions(mi.getMethod(), iface);
      if (methodRoles == null)
      {
         String method = mi.getMethod().getName();
         String msg = "No method permissions assigned to method=" + method
View Full Code Here

         {
            throw e;
         }
         catch (Exception e)
         {
            InvocationType type = mi.getType();
            boolean isLocal = (type == InvocationType.LOCAL || type == InvocationType.LOCALHOME);
            if (isLocal)
               throw new EJBException("Unable to get an instance from the pool", e);
            else
               throw new RemoteException("Unable to get an intance from the pool", e);
View Full Code Here

            {
               throw e;
            }
            catch (Exception e)
            {
               InvocationType type = mi.getType();
               boolean isLocal = (type == InvocationType.LOCAL || type == InvocationType.LOCALHOME);
               if (isLocal)
                  throw new EJBException("Unable to get an instance from the pool/cache", e);
               else
                  throw new RemoteException("Unable to get an intance from the pool/cache", e);
View Full Code Here

      boolean trace = log.isTraceEnabled();
      if( trace )
         log.trace("Current transaction in MI is " + oldTransaction);

      InvocationType type = invocation.getType();
      byte transType = container.getBeanMetaData().getTransactionMethod(invocation.getMethod(), type);

      if ( trace )
         printMethod(invocation.getMethod(), transType);
View Full Code Here

    *                   specification section 18.3
    */
   protected Object invokeNext(Invocation invocation, boolean inheritedTx)
           throws Exception
   {
      InvocationType type = invocation.getType();
      try
      {
         if (type == InvocationType.REMOTE || type == InvocationType.LOCAL || type == InvocationType.SERVICE_ENDPOINT)
         {
            // register the Timer with the transaction
View Full Code Here

/*     */       catch (ServiceUnavailableException e)
/*     */       {
/* 181 */         if (this.trace) {
/* 182 */           log.trace("Invocation failed", e);
/*     */         }
/* 184 */         InvocationType type = invocation.getType();
/* 185 */         if (((this.maxRetries > -1) && (retryCount >= this.maxRetries)) || (!reestablishInvokerProxy(ctx, type)))
/*     */         {
/* 188 */           throw e;
/*     */         }
/* 190 */         retryCount++;
View Full Code Here

/*  88 */     super.create();
/*  89 */     this.tm = getContainer().getTransactionManager();
/*     */   }
/*     */
/*     */   protected Object invokeNext(Invocation invocation, boolean inheritedTx) throws Exception {
/* 112 */     InvocationType type = invocation.getType();
/*     */     TransactionRolledbackException ex;
/*     */     try {
/* 115 */       if ((type == InvocationType.REMOTE) || (type == InvocationType.LOCAL) || (type == InvocationType.SERVICE_ENDPOINT))
/*     */       {
/* 118 */         if (ejbTimeout.equals(invocation.getMethod())) {
View Full Code Here

/*     */         return localObject1; } finally { this.ccm.popMetaAwareObject(this.unsharableResources);
/*     */       }
/*     */     }
/*     */     catch (ResourceException e)
/*     */     {
/* 167 */       InvocationType type = mi.getType();
/* 168 */       boolean isLocal = (type == InvocationType.LOCAL) || (type == InvocationType.LOCALHOME);
/* 169 */       if (isLocal)
/* 170 */         throw new EJBException("Resource problem during invoke", e);
/*     */     }
/* 172 */     throw new RemoteException("Resource problem during invoke", e);
View Full Code Here

/*     */         return localObject1; } finally { this.ccm.popMetaAwareObject(this.unsharableResources);
/*     */       }
/*     */     }
/*     */     catch (ResourceException e)
/*     */     {
/* 198 */       InvocationType type = mi.getType();
/* 199 */       boolean isLocal = (type == InvocationType.LOCAL) || (type == InvocationType.LOCALHOME);
/* 200 */       if (isLocal)
/* 201 */         throw new EJBException("Resource problem during invokeHome", e);
/*     */     }
/* 203 */     throw new RemoteException("Resource problem during invokeHome", e);
View Full Code Here

TOP

Related Classes of org.jboss.invocation.InvocationType

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.