2 Replies Latest reply on Jan 19, 2009 11:03 AM by greigm

    MDB auto-create destination in JBoss 5

    greigm

      Hi,

      I've been happily using EJB3 MDBs in 4.2.2 for some time and they auto-create their destination queues/topics nicely.

      I'm looking to do the same in 5.0.0 but can't quite figure out how to get the destinations to auto-create when the MDB is created.

      I've found this:
      https://jira.jboss.org/jira/browse/JBAS-6013

      which states

      To enable the behaviour you need to add
      <create-destination>true</create-destination>
      on the <message-driven/> in your jboss.xml


      but I don't have a jboss.xml file in my 5.0.0 structure (or if I do Windows Vista's search function is worse than we all imagined!) - can anyone tell me in a kind of "dummy's guide" how to switch on destination auto-creation?

      Many thanks and apologies for being more than slightly stoopid....

        • 1. Re: MDB auto-create destination in JBoss 5
          jaikiran

           

          but I don't have a jboss.xml file in my 5.0.0 structure


          That's an optional file. So if it is not present, then you can create one under the META-INF folder of the EJB jar.



          • 2. Re: MDB auto-create destination in JBoss 5
            greigm

            thanks, but I created a jboss.xml in my meta-inf dir and put this inside it:

            <jboss>
             <enterprise-beans>
             <message-driven>
             <create-destination>true</create-destination>
             </message-driven>
             </enterprise-beans>
            </jboss>


            and JBoss really didn't like it - would I effectively have to specify all my MDBs in this file to use this function?