Package org.jboss.invocation

Examples of org.jboss.invocation.InvocationType


/* 104 */     if (this.realmMapping == null)
/*     */     {
/* 106 */       throw new EJBException("checkSecurityAssociation", new SecurityException("Role mapping manager has not been set"));
/*     */     }
/*     */
/* 111 */     InvocationType iface = mi.getType();
/* 112 */     Set methodRoles = this.container.getMethodPermissions(mi.getMethod(), iface);
/* 113 */     if (methodRoles == null)
/*     */     {
/* 115 */       String method = mi.getMethod().getName();
/* 116 */       String msg = "No method permissions assigned to method=" + method + ", interface=" + iface;
View Full Code Here


/*     */   {
/* 130 */     Object key = mi.getId();
/*     */
/* 132 */     EntityEnterpriseContext ctx = null;
/* 133 */     EntityContainer ec = (EntityContainer)this.container;
/*     */     InvocationType type;
/* 134 */     if ((mi.getTransaction() == null) ||
/* 138 */       (ctx == null))
/*     */     {
/* 140 */       InstancePool pool = ec.getInstancePool();
/*     */       try
View Full Code Here

/*      */       }
/* 1035 */       throw new MBeanException(new IllegalArgumentException("Unknown invocation type: " + type));
/*      */     }
/*      */     catch (JBossLazyUnmarshallingException e)
/*      */     {
/* 1045 */       InvocationType calltype = mi.getType();
/* 1046 */       boolean isLocal = (calltype == InvocationType.LOCAL) || (calltype == InvocationType.LOCALHOME);
/*      */
/* 1050 */       if (isLocal)
/*      */       {
/* 1052 */         throw new EJBException("UnmarshalException", e);
View Full Code Here

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

/*      */   public Object internalInvokeHome(Invocation mi) throws Exception
/*      */   {
/*  498 */     Method method = mi.getMethod();
/*  499 */     if ((method != null) && (method.getName().equals("remove")))
/*      */     {
/*  502 */       InvocationType type = mi.getType();
/*  503 */       if (type == InvocationType.HOME)
/*  504 */         mi.setType(InvocationType.REMOTE);
/*  505 */       else if (type == InvocationType.LOCALHOME)
/*  506 */         mi.setType(InvocationType.LOCAL);
/*  507 */       mi.setMethod(EJBOBJECT_REMOVE);
View Full Code Here

/*     */     }
/*     */   }
/*     */
/*     */   private Exception handleException(Throwable e, Invocation invocation)
/*     */   {
/* 234 */     InvocationType type = invocation.getType();
/* 235 */     boolean isLocal = (type == InvocationType.LOCAL) || (type == InvocationType.LOCALHOME);
/*     */
/* 239 */     if (((e instanceof TransactionRolledbackLocalException)) || ((e instanceof TransactionRolledbackException)))
/*     */     {
/* 244 */       if ((isLocal) && ((e instanceof TransactionRolledbackException)))
View Full Code Here

/*     */     {
/* 124 */       throw e;
/*     */     }
/*     */     catch (Exception e)
/*     */     {
/* 128 */       InvocationType type = mi.getType();
/* 129 */       isLocal = (type == InvocationType.LOCAL) || (type == InvocationType.LOCALHOME);
/* 130 */       if (isLocal) {
/* 131 */         throw new EJBException("Unable to get an instance from the pool", e);
/*     */       }
/* 133 */       throw new RemoteException("Unable to get an intance from the pool", 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.