User: starksm Date: 01/09/11 11:35:03 Modified: src/main/org/jboss/mail MailService.java Log: Convert all logging to org.jboss.logging.Logger which is a subclass of org.apache.log4j.Category. Revision Changes Path 1.6 +4 -4 jboss/src/main/org/jboss/mail/MailService.java Index: MailService.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/mail/MailService.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- MailService.java 2001/08/30 03:58:12 1.5 +++ MailService.java 2001/09/11 18:35:02 1.6 @@ -28,7 +28,7 @@ * in JNDI under java:/ namespace with the name provided with method {@link #setJNDIName}. * * @author <a href="mailto:[EMAIL PROTECTED]">Simone Bordet</a> - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ */ public class MailService extends ServiceMBeanSupport @@ -97,7 +97,7 @@ } catch (NamingException x) { - log.exception(x); + log.error("Unbind failed", x); } } @@ -135,7 +135,7 @@ Reference ref = new Reference(Session.class.getName(), addr, NonSerializableFactory.class.getName(), null); ctx.bind(n.get(0), ref); - log.log("Mail Service '" + getJNDIName() + "' bound to " + m_bindName); + log.info("Mail Service '" + getJNDIName() + "' bound to " + m_bindName); } private void unbind() throws NamingException @@ -144,7 +144,7 @@ { new InitialContext().unbind(m_bindName); NonSerializableFactory.unbind(m_bindName); - log.log("Mail service '" + getJNDIName() + "' removed from JNDI"); + log.info("Mail service '" + getJNDIName() + "' removed from JNDI"); } } } _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development