Author: remy.maucherat(a)jboss.com
Date: 2010-03-24 22:46:36 -0400 (Wed, 24 Mar 2010)
New Revision: 1418
Modified:
trunk/java/org/apache/catalina/core/StandardContext.java
Log:
- Drop some odd looking realm JMX code.
Modified: trunk/java/org/apache/catalina/core/StandardContext.java
===================================================================
--- trunk/java/org/apache/catalina/core/StandardContext.java 2010-03-24 16:45:25 UTC (rev
1417)
+++ trunk/java/org/apache/catalina/core/StandardContext.java 2010-03-25 02:46:36 UTC (rev
1418)
@@ -4066,26 +4066,6 @@
}
}
- // Look for a realm - that may have been configured earlier.
- // If the realm is added after context - it'll set itself.
- // TODO: what is the use case for this ?
- if( realm == null && mserver != null ) {
- ObjectName realmName=null;
- try {
- realmName=new ObjectName( getEngineName() + ":type=Realm,host="
+
- getHostname() + ",path=" + getPath());
- if( mserver.isRegistered(realmName ) ) {
- mserver.invoke(realmName, "init",
- new Object[] {},
- new String[] {}
- );
- }
- } catch( Throwable t ) {
- if(log.isDebugEnabled())
- log.debug("No realm for this host " + realmName);
- }
- }
-
// Initialize character set mapper
getCharsetMapper();
Show replies by date