2 Replies Latest reply on Aug 9, 2004 5:31 AM by bayuehua

    a personal service that calls an EJB

    bayuehua

      Hello everyone,
      I write one custom service, which calls an EJB creation.
      [JBoss 3.2.3]

      I put the custom.jar and test-service.xml in $JBoss/server/all/deploy, and all runs OK.
      But when I restart the JBoss Server, it has a problem.
      It seems the test-service.xml is being deployed before that EJB, so it throws a javax.naming.NameNotFoundException: TimerManagerBean not bound.

      the test-service.xml is like user-service,






      and the class com.test.JNDIMap has start() and stop() methods.

      What can i do to solve this problem?

      thanks in advance
      bayuehua

        • 1. Re: a personal service that calls an EJB
          genman


          If you can find the MBean name for the EJB deployment, you can add a to the -service.xml file. Or, just as easy, you can wait for the object to appear in JNDI in a while() loop.

          • 2. Re: a personal service that calls an EJB
            bayuehua

            Thanks
            it works!
            I added
            depends: jboss.j2ee:service=EJB, jndiName=TimerManagerBean

            Now quite a familiar question. The timer also need to call a webservice, which is deployed via the AXIS.
            Maybe you know the AXIS is a .war file, and then the same question, how should I write the 'depends' tag?

            thanks again
            chens