[jboss-cvs] JBossAS SVN: r64977 - trunk/ejb3/src/main/org/jboss/ejb3/security.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Aug 30 16:39:04 EDT 2007
Author: anil.saldhana at jboss.com
Date: 2007-08-30 16:39:04 -0400 (Thu, 30 Aug 2007)
New Revision: 64977
Modified:
trunk/ejb3/src/main/org/jboss/ejb3/security/JaccHelper.java
Log:
link with parent pc
Modified: trunk/ejb3/src/main/org/jboss/ejb3/security/JaccHelper.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/security/JaccHelper.java 2007-08-30 20:38:35 UTC (rev 64976)
+++ trunk/ejb3/src/main/org/jboss/ejb3/security/JaccHelper.java 2007-08-30 20:39:04 UTC (rev 64977)
@@ -99,8 +99,21 @@
public static void putJaccInService(PolicyConfiguration pc, DeploymentUnit di) throws Exception
{
//TODO: How do we link this with the parent PC?
+ DeploymentUnit parentUnit = di.getParent();
+ if(parentUnit != null)
+ {
+ String parentContextId = parentUnit.getName();
+ PolicyConfigurationFactory pcFactory = Ejb3PolicyConfigurationFactory.getPolicyConfigurationFactory();
+ PolicyConfiguration parentpc = pcFactory.getPolicyConfiguration(parentContextId, false);
+ if(parentpc != null)
+ {
+ parentpc.linkConfiguration(pc);
+ log.trace("JACC Policy Configuration for deployment unit has been linked with parent");
+ return;
+ }
+ }
pc.commit();
- log.trace("JACC Policy Configuration for deployment unit has been put in service");
+ log.trace("JACC Policy Configuration for deployment unit has been put into service");
}
public static void putJaccInService(PolicyConfiguration pc, DeploymentInfo di) throws Exception
More information about the jboss-cvs-commits
mailing list