3 Replies Latest reply on Mar 17, 2003 6:30 PM by Elias Ross

    MBeans and Jboss3.2RC2 problem - little help?

    Jason Boorn Newbie


      Just downloaded RC2 and starting up gives me a problem:

      I have an MBean that starts a server socket and waits for connections. In previous versions of jboss it worked ok, but in RC2 the deployment hangs - it runs the start method and doesnt return (to the main deployment).

      I've seen that recent MBeans extend ServiceMBean - is this necessary? My classes worked fine as the following:

      interface SocketServerMBean{
      init()
      start()
      stop()
      destroy()
      }

      class SocketServer implements SocketServerMBean, Serializable {

      //stuff

      start(){
      ServerSocket gets started in here, waits for conns
      }

      //stuff
      }

      but Im thinking that the interface needs to extend ServiceMBean?
      where do I get info on that interface?
      any examples of code?

      thanks