| private static CachePolicy lookupCachePolicy(String securityDomain) | { | CachePolicy authCache = null; | String domainCachePath = cacheJndiName + '/' + securityDomain; | try | { | InitialContext iniCtx = new InitialContext(); | authCache = (CachePolicy) iniCtx.lookup(domainCachePath); | } | catch(Exception e) | { | // Failed, treat the cacheJndiName name as a global CachePolicy binding | try | { | InitialContext iniCtx = new InitialContext(); | authCache = (CachePolicy) iniCtx.lookup(cacheJndiName); | } | catch(Exception e2) | { | log.warn("Failed to locate auth CachePolicy at: "+cacheJndiName | + " for securityDomain="+securityDomain); | } | } | return authCache; | } | |
It looks like the lookup just returns a null if it cannot find a cache... Worth a shot Setting cache policy blank | <attribute name="AuthenticationCacheJndiName"> | </attribute> | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822803#3822803 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822803 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user