2 Replies Latest reply on Mar 16, 2006 8:47 AM by maheshacharya

    singleton MBean in JBoss possible?

    guava

      Hi,

      Is there anyway to create singleton MBean in JBoss?

      public class SingleDevice
      {
      private static SingleDevice _instance;
      public static synchronized SingleDevice getInstance()
      {
      if ( _instance == null )
      _instance = new SingleDevice()
      return _instance;
      }

      private SingleDevice(){}
      }

      Thanks.