Rabbit MQ in Tomcat using context.xml

160 views
Skip to first unread message

KARTHIK SHIVAKUMAR

unread,
Aug 8, 2018, 9:40:27 AM8/8/18
to rabbitmq-users


   Hi


     This Url has a Tomcat JNDI configurations and does not lead to any simple example on the coding process in using the same for Queues / Topics

     1)  Can some body throw some details with example on handling using the same inside the code.

     2) How to consume /produce Messages to Rabbitmq using the Limit Factor (  Ex: - Max 10 or less messages every connection for the RabbitMQ )


   thx in advance
   Karthik

Arnaud Cogoluègnes

unread,
Aug 9, 2018, 3:59:44 AM8/9/18
to rabbitm...@googlegroups.com
The "JMS AMQP 0-9-1 Destination Definitions" section provides examples
of a queue declaration. You can use Spring Java-based configuration if
you want samples of declaration in Java.

There's no such thing as limit factor in RabbitMQ. A client connection
can be temporarily blocked if the client publishes too fast [1] and
you can limit the number of un-acknowledged messages on a channel /
connection with consumer prefetch [2]. Consumer prefetch at the
channel level is an available setting in the JMS client.

[1] https://www.rabbitmq.com/flow-control.html
[2] https://www.rabbitmq.com/consumer-prefetch.html
> --
> You received this message because you are subscribed to the Google Groups
> "rabbitmq-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rabbitmq-user...@googlegroups.com.
> To post to this group, send email to rabbitm...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages