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

       <mbean code="com.orci.OpenComm.SerialCommSvc.SerialCommSvc" name="orci:service=SerialCommSvc">

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