-
1. Re: JACC Policy Bean not getting injected into EJBModule
anil.saldhana Mar 28, 2007 2:04 AM (in response to anil.saldhana)While we are on this topic, could you tell me what the replacement for these calls are, to avoid usage of deployment context:
deploymentunit.getDeploymentContext().isTopLevel();
andSet<DeploymentContext> children = unit.getDeploymentContext().getChildren(); //I just need the simple names of the children
Update from Anil:
- Scratch the first question. I think unit.getParent() == null signifies top level. -
2. Re: JACC Policy Bean not getting injected into EJBModule
anil.saldhana Mar 28, 2007 12:59 PM (in response to anil.saldhana)Scott, did you get a chance at looking why JaccPolicyMBean is not getting injected due to transient dependence on the containers (ejb/web)?
-
3. Re: JACC Policy Bean not getting injected into EJBModule
anil.saldhana Mar 28, 2007 1:01 PM (in response to anil.saldhana)Transient dependence, sorry.
-
4. Re: JACC Policy Bean not getting injected into EJBModule
starksm64 Mar 28, 2007 1:26 PM (in response to anil.saldhana)Where is the ServiceDependencyValueMetaData on the JaccPolicy being created? I don't see it.
-
5. Re: JACC Policy Bean not getting injected into EJBModule
anil.saldhana Mar 28, 2007 1:32 PM (in response to anil.saldhana)EJBDeployer and AbstractWarDeployer.
Now that you have mentioned it, I think I will have to recheck my logic. -
6. Re: JACC Policy Bean not getting injected into EJBModule
starksm64 Mar 28, 2007 1:42 PM (in response to anil.saldhana)I see ServiceDependencyValueMetaData for tm, webservices, ccm, etc, but nothing for the jacc layer currently.
-
7. Re: JACC Policy Bean not getting injected into EJBModule
anil.saldhana Mar 28, 2007 1:45 PM (in response to anil.saldhana)under ejb/deployers
http://anonsvn.jboss.org/repos/jbossas/trunk/server/src/main/org/jboss/ejb/deployers/EjbDeployer.java//Add a dependence on the jacc policy only if we are not the top-level deployment if(!JaccPolicyUtil.isTopLevelDeployment(unit)) { attrs.add(JaccPolicyUtil.getServiceAttributeMetaData(unit)); }
-
8. Re: JACC Policy Bean not getting injected into EJBModule
anil.saldhana Mar 28, 2007 1:49 PM (in response to anil.saldhana)For a top level deployment, the Security Deployer creates a JaccPolicy bean. The JaccPolicy bean also keeps track of all the subdeployments that are jacc capable (ejbs,wars). As and when each of the jacc capable sub-deployments link their PC, they are removed from the internal list. If all the sub-deployments have linked their pc, then the parentpc commits.
The sub-deployments (ejbs,web) need an injection of JaccPolicy to link their PC with it. -
9. Re: JACC Policy Bean not getting injected into EJBModule
starksm64 Mar 28, 2007 1:49 PM (in response to anil.saldhana)Ok, I don't know then unless its another symptom of the http://jira.jboss.com/jira/browse/JBMICROCONT-159 issue.
-
10. Re: JACC Policy Bean not getting injected into EJBModule
anil.saldhana Mar 28, 2007 1:55 PM (in response to anil.saldhana)It probably is. Also, we need to adapt the deploy method of AbstractWebDeployer to use the updated API for DeploymentUnit ie. unit.getParent() and unit.getSimpleName().
This will remove the usage of DeploymentContext. -
11. Re: JACC Policy Bean not getting injected into EJBModule
anil.saldhana Mar 28, 2007 4:11 PM (in response to anil.saldhana)Is there an equivalent of:
Set<DeploymentContext> children = unit.getDeploymentContext().getChildren();
Something like:Set<DeploymentUnit> children = unit.getChildren();
-
12. Re: JACC Policy Bean not getting injected into EJBModule
starksm64 Mar 28, 2007 6:28 PM (in response to anil.saldhana)There isn't one. What is the need you have?
-
13. Re: JACC Policy Bean not getting injected into EJBModule
starksm64 Mar 28, 2007 10:35 PM (in response to anil.saldhana)The check on the top-level deployment was never valid. I changed it to check for a null parent and I see the policy being injected.
-
14. Re: JACC Policy Bean not getting injected into EJBModule
anil.saldhana Apr 11, 2007 2:52 PM (in response to anil.saldhana)Scott, thanks for the SecurityDeployer cleanup that you made.
Set<DeploymentUnit> children = unit.getChildren();
is needed by deployers dealing with top level deployments to know what embedded deployments exist?
An example would be the JaccPolicy bean that works at the top level and it cannot commit the PolicyConfiguration until everyone underneath has linked to it.