This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I had written some code to configure the Size of the MDB.
I have some Question regarding to above code
1) Can any body please explain when MDB's are created(i.e creating MDB pool), I mean MDB's are created while Jboss is coming up (or) When any new Message comes to Queue?
2) Where can I check how many MDB's are Created in Jboss. (admin-console or jmx-console) ?
3) According to the Above code I specfied the maxSize=50 where can I check how many MDB's are used and how many MBD's are free?
1) As new messages come into the queue. You won't get additional MDBs until the existing ones cannot handle the load. For example, if you get a message per second, and it takes less than a second to process a messages, only one MDB will be created. But it you get 10 messages per second and it take about a second to process a messages, you will end up with 10 MDBs.
2&3) Nowhere that I know of. I use an AtomicInteger within my MDB to keep track of each one, and to know how many there are.