1 Reply Latest reply on Apr 8, 2002 4:11 AM by Peter Antman

    JBoss doc, chapter 4 example 2 questions

    mitchell ackerman Newbie

      hi, i have been trying out some of your examples, and have a couple of questions concerning this one:

      - how are the number of MDB's controlled? do new ones just get created while the queue contains messages?

      - does each MDB run on a separate thread?

      when i ran the example i got a separate MDB for each message, whereas the doc shows 2 beans managing the messages. this is my output:

      [echo] Waiting for deploy...
      [java] Begin sendRecvAsync
      [java] sendRecvAsync, sent text=A text msg#0
      [java] sendRecvAsync, sent text=A text msg#1
      [java] sendRecvAsync, sent text=A text msg#2
      [java] sendRecvAsync, sent text=A text msg#3
      [java] sendRecvAsync, sent text=A text msg#4
      [java] sendRecvAsync, sent text=A text msg#5
      [java] sendRecvAsync, sent text=A text msg#6
      [java] sendRecvAsync, sent text=A text msg#7
      [java] sendRecvAsync, sent text=A text msg#8
      [java] sendRecvAsync, sent text=A text msg#9
      [java] End sendRecvAsync
      [java] onMessage, recv text=A text msg#3processed by: 16276102
      [java] onMessage, recv text=A text msg#2processed by: 5529961
      [java] onMessage, recv text=A text msg#8processed by: 13729924
      [java] onMessage, recv text=A text msg#1processed by: 11314658
      [java] onMessage, recv text=A text msg#0processed by: 1352646
      [java] onMessage, recv text=A text msg#4processed by: 2390185
      [java] onMessage, recv text=A text msg#5processed by: 14073847
      [java] onMessage, recv text=A text msg#7processed by: 6599360
      [java] onMessage, recv text=A text msg#9processed by: 13572035
      [java] onMessage, recv text=A text msg#6processed by: 16186708


      i really need to understand this as this it is critical to the design of my server. thanks, Mitchell.