Need RabbitMQ/JNDI for a Tomcat 8 app ( NoN - Spring Application)

366 views
Skip to first unread message

KARTHIK SHIVAKUMAR

unread,
Apr 13, 2018, 12:28:17 AM4/13/18
to rabbitmq-users
Hi

  I need sample example of RabbitMQ/JNDI for a Tomcat 8 app ( NoN - Spring Application) ...

  Anybody got URL's/Code plz share.


Karthik

Arnaud Cogoluègnes

unread,
Apr 13, 2018, 5:08:26 AM4/13/18
to rabbitm...@googlegroups.com
If you want to configure the JMS client in JNDI, it is covered here [1].

If you want to configure the AMQP client in JNDI, you need to declare the ConnectionFactory as a JNDI resource. The ConnectionFactory isn't exactly a JavaBean, but it may be created by Tomcat resource factory [2] for a basic setup.

If you need something more specific (like configuring TLS), you may need to write your own ObjectFactory [3].

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

KARTHIK SHIVAKUMAR

unread,
Apr 13, 2018, 1:51:12 PM4/13/18
to rabbitmq-users
Hi

For the JNDI for Tomcat 8 refereed in the URL  http://www.rabbitmq.com/jms-client.html

<Resource   name="jms/ConnectionFactory"
type="javax.jms.ConnectionFactory"
factory="com.rabbitmq.jms.admin.RMQObjectFactory"
username="guest"
password="guest"
virtualHost="/"
host="localhost"/>

a) I did find the Max/Min/Active Connections , Heart-Beat verify ..etc details in the
b) I could not find the equivalent Java code to fetch the connections for the MQ operations.

Please suggest the code sample.

Karthik





On Friday, 13 April 2018 14:38:26 UTC+5:30, Arnaud Cogoluègnes wrote:
If you want to configure the JMS client in JNDI, it is covered here [1].

If you want to configure the AMQP client in JNDI, you need to declare the ConnectionFactory as a JNDI resource. The ConnectionFactory isn't exactly a JavaBean, but it may be created by Tomcat resource factory [2] for a basic setup.

If you need something more specific (like configuring TLS), you may need to write your own ObjectFactory [3].
On Fri, Apr 13, 2018 at 6:28 AM, KARTHIK SHIVAKUMAR <nskar...@gmail.com> wrote:
Hi

  I need sample example of RabbitMQ/JNDI for a Tomcat 8 app ( NoN - Spring Application) ...

  Anybody got URL's/Code plz share.


Karthik

--
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.

KARTHIK SHIVAKUMAR

unread,
Apr 18, 2018, 1:01:37 AM4/18/18
to rabbitmq-users
Hi

  Still trying to get some solution in here...
Reply all
Reply to author
Forward
0 new messages