Can we set this property using the Admin console of glassfish ? Im a beginner in this and have set all the properties using the admin console of glassfish. The ConnectionFactory has an addressList property, in which i have mentioned the names of the remote machines. I do not understand how to set properties using the command line. Im developing this using the Netbeans IDE, with in built glassfish application server.
Main Topics
Browse All Topics





by: Bart_CrPosted on 2008-08-24 at 22:36:04ID: 22303405
You'll have to take a look at the "Consumer Flow Limit" property of your queue. In load-balanced queue delivery, this is the initial number of queued messages routed to active consumers before load balancing begins. By default this is set to 1000.
imqcmd -u admin query dst -t q -n <your-queue>
You've got some options to alter this. A destination consumer can override this limit by specifying a lower value on a connection. Or you can set a default per queue or even for all queues. Easiest is to set it per queue.
imqcmd -u admin update dst -t q -n <your-queue> -o consumerFlowLimit=1
For switching consumers every single message. Note that in production system a value of 1 is probably not the best choice. Switching consumers every time will cause a performance overhead.