Examples of disassociate()


Examples of org.apache.openejb.spi.SecurityService.disassociate()

                return setResponseError(res, version, t, "Unable to set the thread call context for this request: " + req);
            }

        } finally {
            if (failed) {
                securityService.disassociate();
            }
        }

        res.start(EJBResponse.Time.CONTAINER);
View Full Code Here

Examples of org.apache.openejb.spi.SecurityService.disassociate()

            try {
                res.writeExternal(out);
            } catch (java.io.IOException ie) {
                logger.fatal("Couldn't write EjbResponse to output stream", ie);
            }
            securityService.disassociate();
            call.reset();
            EJBHomeProxyHandle.resolver.set(null);
            EJBObjectProxyHandle.resolver.set(null);

        }
View Full Code Here

Examples of org.apache.openejb.spi.SecurityService.disassociate()

    @SuppressWarnings("unchecked")
    @Override
    public void after(final SecurityContext securityContext) throws WorkCompletedException {
        final SecurityService securityService = SystemInstance.get().getComponent(SecurityService.class);
        final Object loginObj = securityService.disassociate();
        if (loginObj != null) {
            try {
                securityService.logout(loginObj);
            } catch (final LoginException e) {
                //Ignore
View Full Code Here

Examples of org.apache.openejb.spi.SecurityService.disassociate()

                            ThreadContext.exit(oldCtx);
                        }
                        if (!associate) {
                            securityService.setState(threadState);
                        } else {
                            securityService.disassociate();
                        }
                    }
                }
            }, method.getReturnType() == Void.TYPE);
        } else {
View Full Code Here

Examples of org.apache.openejb.spi.SecurityService.disassociate()

                            ThreadContext.exit(oldCtx);
                        }
                        if (!associate) {
                            securityService.setState(threadState);
                        } else {
                            securityService.disassociate();
                        }
                    }
                }
            }, method.getReturnType() == Void.TYPE);
        } else {
View Full Code Here

Examples of org.apache.openejb.spi.SecurityService.disassociate()

            }
        } finally {

            if (callContext == null && localClientIdentity != null) {
                final SecurityService securityService = SystemInstance.get().getComponent(SecurityService.class);
                securityService.disassociate();
            }
        }
    }

    private <T> T copy(final IntraVmCopyMonitor.State strategy, final T object) throws IOException, ClassNotFoundException {
View Full Code Here

Examples of org.apache.openejb.spi.SecurityService.disassociate()

                throw convertException(throwable, method, interfce);
            }
        } finally {
            if (callContext == null && localClientIdentity != null) {
                SecurityService securityService = SystemInstance.get().getComponent(SecurityService.class);
                securityService.disassociate();
            }
        }
    }

    private <T> T copy(IntraVmCopyMonitor.State strategy, T object) throws IOException, ClassNotFoundException {
View Full Code Here

Examples of org.apache.openejb.spi.SecurityService.disassociate()

        WSPasswordCallback pc = (WSPasswordCallback) callbacks[0];

        SecurityService securityService = SystemInstance.get().getComponent(SecurityService.class);
        Object token = null;
        try {
            securityService.disassociate();

            token = securityService.login(pc.getIdentifer(), pc.getPassword());
            securityService.associate(token);
        } catch (LoginException e) {
            throw new SecurityException("wrong password");
View Full Code Here

Examples of org.apache.openejb.spi.SecurityService.disassociate()

            try {
                res.writeExternal(out);
            } catch (java.io.IOException ie) {
                logger.fatal("Couldn't write EjbResponse to output stream", ie);
            }
            securityService.disassociate();
            call.reset();
            EJBHomeProxyHandle.resolver.set(null);
            EJBObjectProxyHandle.resolver.set(null);

        }
View Full Code Here

Examples of org.apache.openejb.spi.SecurityService.disassociate()

           
            SecurityService securityService = SystemInstance.get()
        .getComponent(SecurityService.class);
      Object token = null;
      try {
    securityService.disassociate();

    token = securityService.login(pc.getIdentifer(), pc.getPassword());
    securityService.associate(token);
   
      } catch (LoginException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.