0 Replies Latest reply on Oct 22, 2008 4:53 PM by Jamie Johnson


    Jamie Johnson Newbie

      Currently I am accessing the JaasSecurityManager in an EJB to authenticate flex clients. This seems to be working well but I have tied myself to JBoss with my current implementation. Is there any generic mechanism to obtain the security manager in an Application Server? Do other application servers provide similar mechanisms to get a handle on the security manager?

      Currently doing:

      private void function(){
      String securityManagerObjectName ="jboss.security:service=JaasSecurityManager";
       String mbeanServerJndiName = "jmx/rmi/RMIAdaptor";
       MBeanServerConnection server = this.getMbeanServerConnection(mbeanServerJndiName);
       ObjectName jaasMgr = new ObjectName(securityManagerObjectName);
       private MBeanServerConnection getMbeanServerConnection(String jndiName){
       return (MBeanServerConnection)sessionContext.lookup(jndiName);