0 Replies Latest reply on Feb 22, 2007 10:11 AM by David Robison

    Accessing another service's mbean from a web service?

    David Robison Novice

      I have a web service and I want to lookup another service to see if it has started. I have tried:

      Context jndiContext = new InitialContext();
      ServiceMBean serviceMBean = (ServiceMBean)jndiContext.lookup("orci:service=SerialCommSvc");
      


      The service is defined as

      <server>
       <mbean code="com.orci.OpenComm.SerialCommSvc.SerialCommSvc" name="orci:service=SerialCommSvc">
       <depends>jboss:service=CorbaNaming</depends>
       <depends>orci:name=OpenCommSessionFactory</depends>
       </mbean>
      </server>



      unfortunately, the lookup does not find the service. Am I doing something wrong? Thanks in advance,

      David