1 Reply Latest reply on Sep 14, 2004 11:17 PM by Elias Ross

    max. limit on creation of MDB's

    Banibrata Dutta Newbie

      Hi,

      I'm a newbie as far as J2EE, JMS etc is concerned, so i could be posing a foolish question, kindly bear with me.

      Is there any theoretical or practical limit on the total number of MDB's that can be created in JBOSS, simultaneously ??

      Assuming that I have couple of message sources, would i generally have a single MDB waiting for the messages, which in turn distributes it to session-beans based on some policy, or are is there 1 MDB per message source, or no such relationship i.e. could be 1-to-1, 1-to-M, M-to-M ??

      thanks,
      bd

        • 1. Re: max. limit on creation of MDB's
          Elias Ross Master


          In general, a MDB listens to a single Queue. JBoss allows you to allocate as many MDB instances per queue as you want. Each instance has its own thread.

          You could have one MDB deployed per queue, or 1000 per queue, or the same MDB class listening to different queues. You can't have a single MDB instance listening to multiple queues, but could use the same MDB class. Take a look at some ejb-jar.xml.