1 Reply Latest reply on Jan 17, 2003 8:52 PM by raja05

    MDB Depends tag

    fboss

      Hi yall,

      In deploying my MDB, I want to make it wait until everything is deployed (my webapp, ejbs, etc) before processing any msg in the Q. I know I can use the depends tag in the property file but I don't know the syntax. If I want to make it depend on, say after my .war file got loaded or a servlet, how do I do that? The reason I asked is because at startup, my MDB sometimes start consuming messages in the queue while the rest of my applications aren't loaded yet. This sometimes caused my jboss to hang at start up if there are left overs in the queue. Can anyone point me to the right direction for the depends tag or a better idea?

      Thanks

        • 1. Re: MDB Depends tag
          raja05

          Hi
          Im not sure about hte depends tag but you can create ur startup objects from teh setMessageDrivenContext method. This way, when ur MDBs are created, whatever objects that you need will also be created.. You dont have to wait for ur servlet startup to do the initialization work.

          -Raj

          > Hi yall,
          >
          > In deploying my MDB, I want to make it wait until
          > everything is deployed (my webapp, ejbs, etc) before
          > processing any msg in the Q. I know I can use the
          > depends tag in the property file but I don't know the
          > syntax. If I want to make it depend on, say after my
          > .war file got loaded or a servlet, how do I do that?
          > The reason I asked is because at startup, my MDB
          > B sometimes start consuming messages in the queue
          > while the rest of my applications aren't loaded yet.
          > This sometimes caused my jboss to hang at start up
          > if there are left overs in the queue. Can anyone
          > point me to the right direction for the depends tag
          > or a better idea?
          >
          > Thanks