Is it possible to configure maximum no. of messages for a Queue? i.e. the server should not accept anymore messages once this limit is reached and the producer.send() should get blocked until some messages are consumed from the Queue.
From the definition of 'Producer Flow Control' given in user manual, I got an impression that it serves the purpose, but it seems it is something different. I tried setting <producer-window-size>16</producer-window-size> and still were able to send 50K messages of size 8 Bytes. Any help is highly appreciated.
Currently producer window based flow control ensures there is no more than x bytes of data *in transit* at any one time.
It's not currently limited on the queue size. There is a task to implement producer flow control on hard queue size too, here: