0 Replies Latest reply on Oct 8, 2009 8:06 PM by Alex Parker

    Inject MBean ref into web app?

    Alex Parker Newbie

      Hello; first post here.

      I'm developing a simple, stateful service, and I like the idea of managing it with an MBean interface (it's very simple), but I also need to expose it as a (JAX) web service. I'd like to keep the web-servicey code away from the MBean code if possible, but then the web service needs to get a handle to the MBean. Is it possible for JBoss to inject a reference to the MBean into the web service endpoint?

      If not, is an EJB a better way to go?