User: oleg    
  Date: 00/11/08 08:45:32

  Modified:    src/main/org/jboss/logging FileLogging.java
  Log:
  Default JMX ObjectName changed in order to avoid conflicts with several file loggers
  
  Revision  Changes    Path
  1.9       +3 -2      jboss/src/main/org/jboss/logging/FileLogging.java
  
  Index: FileLogging.java
  ===================================================================
  RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/logging/FileLogging.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- FileLogging.java  2000/11/07 12:26:19     1.8
  +++ FileLogging.java  2000/11/08 16:45:32     1.9
  @@ -22,7 +22,7 @@
    *
    *   @see <related>
    *   @author Rickard �berg ([EMAIL PROTECTED])
  - *   @version $Revision: 1.8 $
  + *   @version $Revision: 1.9 $
    */
   public class FileLogging
      extends ServiceMBeanSupport
  @@ -124,7 +124,8 @@
         throws javax.management.MalformedObjectNameException
      {
         this.server = server;
  -      this.name = name == null ? new ObjectName(OBJECT_NAME) : name;
  +      this.name = name == null ? new ObjectName(OBJECT_NAME + (sources == null ? "" 
: ",sources=" + sources))
  +                               : name;
         return this.name;
      }
      
  
  
  

Reply via email to