1 Reply Latest reply on Jan 7, 2003 4:24 AM by juhalindfors

    only one instance of a message driven bean?

    raphael

      Hi,

      I have a message driven bean which must only be instantiated
      once by JBoss. The reason is that the business functionality requires that the messages are kept in the original sequence.

      Now I found in the JBoss book (vers. 3.0.4) page 166 that
      there is a configuration in standardjboss.xml in the section
      org.jboss.ejb.plugins.MessageDrivenInstancePool
      where I can configure the MaximumSize to 1 and
      set strictMaximumSize to true.

      That will configure JBoss to let *ALL* MDBs be singletons!

      It seems to me that this is a bad idea. I would prefer a
      solution where I can configure this for one specific MDB
      rather than for all MDBs.

      Is this possible?
      Can it even be configured in the MDB's deployment descriptor?

      Thanks in advance!

      Raphael

        • 1. Re: only one instance of a message driven bean?

          Pool size can be configured per MDB type by creating a custom container configuration rather than editing the standard configs. See the JBoss Admin guide for details (or try searching the forums, there might be an example somewhere, or read through the jboss.xml DTD).