User: user57 Date: 01/12/08 18:37:54 Modified: src/main/org/jboss/system ServiceCreator.java Log: o minor cosmetic change to about/create bean log messages Revision Changes Path 1.6 +12 -12 jboss/src/main/org/jboss/system/ServiceCreator.java Index: ServiceCreator.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/system/ServiceCreator.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ServiceCreator.java 2001/12/05 21:23:59 1.5 +++ ServiceCreator.java 2001/12/09 02:37:54 1.6 @@ -24,7 +24,7 @@ * @see Service * * @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a> - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * * <p><b>Revisions:</b> * <p><b>2001/08/03 marcf </b> @@ -35,7 +35,8 @@ public class ServiceCreator { // Attributes ---------------------------------------------------- - + + /** Instance logger. */ private final Logger log = Logger.getLogger(getClass()); private MBeanServer server; @@ -72,31 +73,30 @@ String code = mbeanElement.getAttribute("code"); if (code == null) { - throw new ConfigurationException - ("missing 'code' attribute"); + throw new ConfigurationException("missing 'code' attribute"); } // get the constructor params/sig to use ConstructorInfo constructor = ConstructorInfo.create(mbeanElement); - log.info("About to create the bean"+name); + log.info("About to create bean: "+name); // Create the MBean instance try { - ObjectInstance instance = server.createMBean(code, - name, - loader, - constructor.params, - constructor.signature); - log.info("Created the bean"+name); + ObjectInstance instance = server.createMBean(code, + name, + loader, + constructor.params, + constructor.signature); + log.info("Created bean: "+name); return instance; } catch (Exception e) { - //didn't work, unregister in case the jmx agent is screwed. + // didn't work, unregister in case the jmx agent is screwed. try { server.unregisterMBean(name);
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development