[jboss-dev-forums] [Design of Security on JBoss] - Re: Broken object names in jacc

anil.saldhana@jboss.com do-not-reply at jboss.com
Mon Mar 17 14:37:58 EDT 2008


  | static final String BASE_OBJECT_NAME = "jboss.jacc:service=jacc,id=";
  |    
  | /**
  |     * Qualify the object name with parent name just to avoid conflicts
  |     * with deployments with the same name in multiple archives
  |     */
  |    private String getObjectName(DeploymentUnit unit)
  |    {
  |       String deploymentName = unit.getSimpleName();
  |       DeploymentUnit parentDU = unit.getParent(); 
  |       String parentDeploymentName = parentDU != null ? 
  |             ",parent=" + parentDU.getSimpleName() : "";
  |       return BASE_OBJECT_NAME  + deploymentName + parentDeploymentName;
  |    }
  | 

If deploymentunit.getSimpleName is blank, then id= is blank.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137156#4137156

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137156



More information about the jboss-dev-forums mailing list