Package javax.ejb

Examples of javax.ejb.AccessLocalException


/* 362 */       localObject1 = this.container.invoke(invocation);
/*     */     }
/*     */     catch (AccessException ae)
/*     */     {
/*     */       Object localObject1;
/* 366 */       throw new AccessLocalException(ae.getMessage(), ae);
/*     */     }
/*     */     catch (NoSuchObjectException nsoe)
/*     */     {
/* 370 */       throw new NoSuchObjectLocalException(nsoe.getMessage(), nsoe);
/*     */     }
View Full Code Here


/* 435 */       localObject1 = this.container.invoke(invocation);
/*     */     }
/*     */     catch (AccessException ae)
/*     */     {
/*     */       Object localObject1;
/* 439 */       throw new AccessLocalException(ae.getMessage(), ae);
/*     */     }
/*     */     catch (NoSuchObjectException nsoe)
/*     */     {
/* 443 */       throw new NoSuchObjectLocalException(nsoe.getMessage(), nsoe);
/*     */     }
View Full Code Here

/*     */       {
/* 380 */         return runtimeException;
/*     */       }
/* 382 */       if (isLocal)
/*     */       {
/* 384 */         return new AccessLocalException("SecurityException", runtimeException);
/*     */       }
/*     */
/* 388 */       return new AccessException("SecurityException", runtimeException);
/*     */     }
/*     */
View Full Code Here

            if (exc instanceof EJBAccessException) {
                if (interfaceType.isBusiness()) {
                    throw exc;
                } else {
                    if (interfaceType.isLocal()) {
                        throw (AccessLocalException)new AccessLocalException(exc.getMessage()).initCause(exc);
                    } else {
                        try {
                            throw new AccessException(exc.getMessage()).initCause(exc);
                        } catch (IllegalStateException vmbug) {
                            // Sun JDK 1.5 bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4871783
View Full Code Here

                return e;
            }
        }
        if (e instanceof AccessException) {
            if (!rmiRemote && interfaceType.isBusiness()) {
                return new AccessLocalException(e.getMessage()).initCause(getCause(e));
            } else if (interfaceType.isLocal()) {
                return new AccessLocalException(e.getMessage()).initCause(getCause(e));
            } else {
                return e;
            }
        }
View Full Code Here

                // Handler performed method authorization already
            } else {

                boolean authorized = container.authorize(inv);
                if( !authorized ) {
                  throw new AccessLocalException
                      ("Client not authorized to access " + inv.method);
                }
            }
          } else if ( hasHandlers_ ) {
View Full Code Here

                // Handler performed method authorization already
            } else {

                boolean authorized = container.authorize(inv);
                if( !authorized ) {
                  throw new AccessLocalException
                      ("Client not authorized to access " + inv.method);
                }
            }
          } else if ( hasHandlers_ ) {
View Full Code Here

                return;
            }

            if ( doPreInvokeAuthorization(inv) ) {
                if (! authorize(inv)) {
                    throw new AccessLocalException(localStrings.getLocalString(
                            "ejb.client_not_authorized",
                            "Client not authorized for this invocation"));
                }
            }
View Full Code Here

        inv.isHome = EJB_INTF_METHODS_INFO[method];
        inv.method = ejbIntfMethods[method];
        inv.invocationInfo = ejbIntfMethodInfo[method];

        if ( !authorize(inv) ) {
            throw new AccessLocalException(localStrings.getLocalString(
                    "ejb.client_not_authorized",
                    "Client not authorized for this invocation"));
        }
    }
View Full Code Here

                return;
            }

            if ( doPreInvokeAuthorization(inv) ) {
                if (! authorize(inv)) {
                    throw new AccessLocalException(localStrings.getLocalString(
                            "ejb.client_not_authorized",
                            "Client not authorized for this invocation"));
                }
            }
View Full Code Here

TOP

Related Classes of javax.ejb.AccessLocalException

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.