User: user57  
  Date: 02/04/07 01:07:23

  Modified:    varia/src/main/org/jboss/varia/counter
                        CounterInterceptor.java CounterService.java
  Removed:     varia/src/main/org/jboss/varia/counter
                        CounterServiceMBean.java
  Log:
   o Using XDoclet to generate *MBean interfaces
  
  Revision  Changes    Path
  1.2       +1 -1      
contrib/varia/src/main/org/jboss/varia/counter/CounterInterceptor.java
  
  Index: CounterInterceptor.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/varia/src/main/org/jboss/varia/counter/CounterInterceptor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CounterInterceptor.java   16 Feb 2002 04:16:32 -0000      1.1
  +++ CounterInterceptor.java   7 Apr 2002 09:07:23 -0000       1.2
  @@ -43,7 +43,7 @@
    * statistics.
    * 
    * @author <a href="mailto:[EMAIL PROTECTED]";>Dan Christopherson</href>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
   public class CounterInterceptor
      extends AbstractInterceptor
  @@ -105,7 +105,7 @@
         if (counter == null) {
            try {
               InitialContext ctx = new InitialContext();
  -            counter = (CounterService)ctx.lookup(CounterServiceMBean.JNDI_NAME);
  +            counter = (CounterService)ctx.lookup(CounterService.JNDI_NAME);
            } catch (NamingException ne) {
               if (!loggedNoCounter) {
                  log.warn("CounterInterceptor can't get counter service ", ne);
  
  
  
  1.2       +8 -1      
contrib/varia/src/main/org/jboss/varia/counter/CounterService.java
  
  Index: CounterService.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/varia/src/main/org/jboss/varia/counter/CounterService.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CounterService.java       16 Feb 2002 04:16:32 -0000      1.1
  +++ CounterService.java       7 Apr 2002 09:07:23 -0000       1.2
  @@ -21,14 +21,18 @@
   /**
    * A service offering accumulator style counters to help in diagnosing
    * performance issues.
  + *
  + * @jmx:mbean extends="org.jboss.system.ServiceMBean"
    * 
    * @author <a href="mailto:[EMAIL PROTECTED]";>Dan Christopherson</href>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
   public class CounterService
      extends ServiceMBeanSupport
      implements CounterServiceMBean
   {
  +   public static final String JNDI_NAME = "java:/CounterService";
  +
      private HashMap counterMap = new HashMap();
      
      /**
  @@ -68,6 +72,9 @@
         NonSerializableFactory.unbind(JNDI_NAME);
      }
      
  +   /**
  +    * @jmx:managed-operation
  +    */
      public String list()
      {
         DecimalFormat format = new DecimalFormat("####0.0000");
  
  
  

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

Reply via email to