0 Replies Latest reply on Sep 24, 2002 9:58 AM by Dylan Browne

    FindMBeanServer probelm

    Dylan Browne Newbie

      Hi,

      The following line of code returns an ArrayList of size zero, (so I get a NoSuchElementException) even though JBoss (3.2) is running ok. Has anyone seen this before:

      MBeanServer server = (MBeanServer)MBeanServerFactory.findMBeanServer(null).iterator().next();

      Thanks in advance for any ideas.

      Cheers,
      Dylan