adc 2004/05/22 08:25:13 Modified: modules/security/src/java/org/apache/geronimo/security/realm/providers KerberosSecurityRealm.java PropertiesFileSecurityRealm.java SQLSecurityRealm.java Log: Added some log traces. Revision Changes Path 1.3 +9 -1 incubator-geronimo/modules/security/src/java/org/apache/geronimo/security/realm/providers/KerberosSecurityRealm.java Index: KerberosSecurityRealm.java =================================================================== RCS file: /home/cvs/incubator-geronimo/modules/security/src/java/org/apache/geronimo/security/realm/providers/KerberosSecurityRealm.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- KerberosSecurityRealm.java 25 Feb 2004 09:58:09 -0000 1.2 +++ KerberosSecurityRealm.java 22 May 2004 15:25:13 -0000 1.3 @@ -29,6 +29,8 @@ import org.apache.geronimo.gbean.GOperationInfo; import org.apache.geronimo.security.GeronimoSecurityException; import org.apache.regexp.RE; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; /** @@ -37,6 +39,7 @@ public class KerberosSecurityRealm extends AbstractSecurityRealm { private static final GBeanInfo GBEAN_INFO; + private static Log log = LogFactory.getLog(KerberosSecurityRealm.class); private boolean running = false; private boolean debug; @@ -64,10 +67,14 @@ public void doStart() { refresh(); running = true; + + log.info("Kerberos Realm - " + getRealmName() + " - started"); } public void doStop() { running = false; + + log.info("Kerberos Realm - " + getRealmName() + " - stopped"); } public boolean isDebug() { @@ -203,6 +210,7 @@ } public void refresh() throws GeronimoSecurityException { + log.info("Kerberos Realm - " + getRealmName() + " - refresh"); } public javax.security.auth.login.AppConfigurationEntry getAppConfigurationEntry() { 1.5 +11 -1 incubator-geronimo/modules/security/src/java/org/apache/geronimo/security/realm/providers/PropertiesFileSecurityRealm.java Index: PropertiesFileSecurityRealm.java =================================================================== RCS file: /home/cvs/incubator-geronimo/modules/security/src/java/org/apache/geronimo/security/realm/providers/PropertiesFileSecurityRealm.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- PropertiesFileSecurityRealm.java 10 Mar 2004 09:59:26 -0000 1.4 +++ PropertiesFileSecurityRealm.java 22 May 2004 15:25:13 -0000 1.5 @@ -34,7 +34,10 @@ import org.apache.geronimo.gbean.GConstructorInfo; import org.apache.geronimo.gbean.GOperationInfo; import org.apache.geronimo.security.GeronimoSecurityException; + import org.apache.regexp.RE; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; /** @@ -43,6 +46,7 @@ public class PropertiesFileSecurityRealm extends AbstractSecurityRealm { private static final GBeanInfo GBEAN_INFO; + private static Log log = LogFactory.getLog(PropertiesFileSecurityRealm.class); private boolean running = false; private URI usersURI; @@ -68,12 +72,16 @@ refresh(); running = true; + + log.info("Properties File Realm - " + getRealmName() + " - started"); } public void doStop() { users.clear(); groups.clear(); running = false; + + log.info("Properties File Realm - " + getRealmName() + " - stopped"); } public URI getUsersURI() { @@ -171,7 +179,9 @@ } } + log.info("Properties File Realm - " + getRealmName() + " - refresh"); } catch (IOException e) { + log.info("Properties File Realm - " + getRealmName() + " - refresh failed"); throw new GeronimoSecurityException(e); } } 1.5 +10 -1 incubator-geronimo/modules/security/src/java/org/apache/geronimo/security/realm/providers/SQLSecurityRealm.java Index: SQLSecurityRealm.java =================================================================== RCS file: /home/cvs/incubator-geronimo/modules/security/src/java/org/apache/geronimo/security/realm/providers/SQLSecurityRealm.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- SQLSecurityRealm.java 10 Mar 2004 09:59:26 -0000 1.4 +++ SQLSecurityRealm.java 22 May 2004 15:25:13 -0000 1.5 @@ -38,6 +38,8 @@ import org.apache.geronimo.gbean.GOperationInfo; import org.apache.geronimo.security.GeronimoSecurityException; import org.apache.regexp.RE; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; /** @@ -47,6 +49,7 @@ public class SQLSecurityRealm extends AbstractSecurityRealm { private static final GBeanInfo GBEAN_INFO; + private static Log log = LogFactory.getLog(SQLSecurityRealm.class); public final static String USER_SELECT = "org.apache.geronimo.security.realm.providers.SQLSecurityRealm.USER_SELECT"; public final static String GROUP_SELECT = "org.apache.geronimo.security.realm.providers.SQLSecurityRealm.GROUP_SELECT"; public final static String CONNECTION_URL = "org.apache.geronimo.security.realm.providers.SQLSecurityRealm.CONNECTION_URL"; @@ -82,6 +85,8 @@ refresh(); running = true; + + log.info("SQL Realm - " + getRealmName() + " - started"); } public void doStop() { @@ -89,6 +94,8 @@ users.clear(); groups.clear(); + + log.info("SQL Realm - " + getRealmName() + " - stopped"); } public String getConnectionURL() { @@ -255,7 +262,9 @@ this.users.putAll(users); this.groups.putAll(groups); + log.info("SQL Realm - " + getRealmName() + " - refresh"); } catch (SQLException sqle) { + log.info("SQL Realm - " + getRealmName() + " - refresh failed"); throw new GeronimoSecurityException(sqle); } }