User: starksm 
  Date: 01/06/22 12:08:25

  Modified:    src/main/org/jnp/server Main.java
  Log:
  Handle empty provider url names
  Accept the name to use for the log4j category
  
  Revision  Changes    Path
  1.7       +6 -2      jnp/src/main/org/jnp/server/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /cvsroot/jboss/jnp/src/main/org/jnp/server/Main.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Main.java 2001/05/30 01:59:10     1.6
  +++ Main.java 2001/06/22 19:08:25     1.7
  @@ -35,7 +35,7 @@
   
   @author oberg
   @author [EMAIL PROTECTED]
  -@version $Revision: 1.6 $
  +@version $Revision: 1.7 $
   */
   public class Main
      implements Runnable, MainMBean
  @@ -81,6 +81,10 @@
       // Constructors --------------------------------------------------
       public Main()
       {
  +       this("Naming");
  +    }
  +    public Main(String categoryName)
  +    {
           // Load properties from properties file
           try
           {
  @@ -93,7 +97,7 @@
           // Set configuration from the system properties
           setPort(Integer.getInteger("jnp.port",getPort()).intValue());
           setRmiPort(Integer.getInteger("jnp.rmiPort",getRmiPort()).intValue());
  -        log = Category.getInstance("Naming");
  +        log = Category.getInstance(categoryName);
       }
   
       // Public --------------------------------------------------------
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to