4 Replies Latest reply on Feb 28, 2002 3:39 PM by ptran83

    MDB serialize

    prpina

      Is there a way to serialize a Message Driven Bean ?
      Something like having a queue with 2 messages and a MDB associated with that queue. The bean is instatiated when the first message arrives and only gathers the second when processes the first (the MDB is serial...)

      Thanks for any help
      PP

        • 1. Re: MDB serialize
          hchirino

          yes.. change your container configuration.
          Edit the standardjboss.xml
          Find the section:
          <container-configuration>
          <container-name>Standard Message Driven Bean</container-name>

          <container-invoker-conf>

          Change the: 15
          to 1

          Thats the number of concurrent threads pull messages. If you want serial acess, you only want one thread pulling messages out at any one time.

          Regards,
          Hiram

          • 2. Re: MDB serialize
            dobblou

            Is there anyway to apply serialization on particular MDB instead of all the MDBs?

            • 3. Re: MDB serialize

              Yes, by having naming your container configuration and specify that for your bean.

              //Peter

              • 4. Re: MDB serialize
                ptran83

                Thanks for your help on my silly mistake. I will try on the standardjboss.xml file.

                Peter