[Jboss-cvs] JBossAS SVN: r56419 - trunk/ejb3/src/main/org/jboss/ejb3/embedded
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Aug 29 17:59:40 EDT 2006
Author: anil.saldhana at jboss.com
Date: 2006-08-29 17:59:39 -0400 (Tue, 29 Aug 2006)
New Revision: 56419
Modified:
trunk/ejb3/src/main/org/jboss/ejb3/embedded/JaasSecurityManagerService.java
Log:
correct the JNDI lookup
Modified: trunk/ejb3/src/main/org/jboss/ejb3/embedded/JaasSecurityManagerService.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/embedded/JaasSecurityManagerService.java 2006-08-29 21:30:31 UTC (rev 56418)
+++ trunk/ejb3/src/main/org/jboss/ejb3/embedded/JaasSecurityManagerService.java 2006-08-29 21:59:39 UTC (rev 56419)
@@ -107,7 +107,11 @@
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception
{
- String securityDomainName = name.get(0);
+ /**
+ * The lookup will be of the form java:/jaas/other
+ * So check for name.get(1)
+ */
+ String securityDomainName = name.get(1);
final SecurityDomainContext ctx = new SecurityDomainContext(getSecurityManager(securityDomainName), null);
ctx.setAuthorizationManager(new JBossAuthorizationManager(securityDomainName, new SecurityAssociationHandler()));
return new BrainlessContext()
More information about the jboss-cvs-commits
mailing list