4 Replies Latest reply on Jan 30, 2007 3:11 PM by genman

    MDB dependency on other MDB

    ariekz

      Hi

      I have a configuration in which my application servers creates MDB(S) as consumers to topics in remote JbossMQ server. In addition there is security configuration, while a special MDB is responsible for handling security messages and logic. The problem is when losing connection to remote JMS server: once the server is back the local MDB trying to reconnect but fails due to the fact that the MDB responsible for the authentication is not ready (was not reconnected yet). I tried to configure dependency between all of the MDBs and the special MDB responsible for the authentication, but it doesn?t works as well, since that in the deployment part I?m getting an error says that MDB depends on other MDB was not installed yet.

      Please advice how to solve the problem.

      10x

      Arie

        • 1. Re: MDB dependency on other MDB
          genman

          Although getting help here is fairly rare these days ;-) you should post your server version, configuration files, and relevant error messages.

          I assume you're using in your jboss.xml ?

          • 2. Re: MDB dependency on other MDB
            genman

            using ...

            < depends / >
            in your jboss.xml

            • 3. Re: MDB dependency on other MDB
              ariekz

              Hi, 10x for the response
              In general I've managed without dependencies, though for general knowledge I used < depends / >, the problem is that both the depend and the depended MDBs are in the same configuration files (jboss.xml and ejb-jar.xml) so while deploying I get messages saying that the depended MDB is not install yet.
              It would be great to get response how to solve this issue for further possible needs.

              Arie

              • 4. Re: MDB dependency on other MDB
                genman

                I'd bet that there was a bug in the MBeans created by the EJB deployer, which I've seen dealing with MDBs and "depends". (but only on redeploy.) I honestly don't know what it is, but it has never worked right since 3.2.

                If you can make things work without "depends", then that might be good enough. If you just need it to work, there is a way to have JBoss deploy modules in a certain order:
                http://www.jboss.org/wiki/Wiki.jsp?page=URLComparator

                Again, explain your module layout and messages you see.