Package com.sun.ejb.containers

Examples of com.sun.ejb.containers.StatelessSessionContainer


     public boolean isUserInRole(String role) {
        Switch sw = Switch.getSwitch();
        InvocationManager mgr = sw.getInvocationManager();
        Object o = mgr.getCurrentInvocation().getContainerContext();
        if(o instanceof StatelessSessionContainer) {
            StatelessSessionContainer cont = (StatelessSessionContainer) o;
            boolean res = cont.getSecurityManager().isCallerInRole(role);
            return res;
        } else if (o instanceof WebModule) {
            WebModule webModule = (WebModule)o;
            Realm realm = webModule.getRealm();
            if (realm instanceof RealmAdapter) {
View Full Code Here

TOP

Related Classes of com.sun.ejb.containers.StatelessSessionContainer

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.