Hello Isomorphic , sorry for the slow response.
Actually your suggested setting for the ConnectionFactory works like a charm, so now I'm using RabbitMQ streams.
Just in case someone else needs it, this is the working configuration (in the context.xml file of my application):
in server.properties:
using RabbitMQ console I've created a queue of type Stream, named myChannel, bound to an exchange jms.durable.topic (type Topic) with routing key jms/myChannel.
I'm using it with RabbitMQ 3.10.1, and the web application is deployed in a tomcat cluster.
Actually your suggested setting for the ConnectionFactory works like a charm, so now I'm using RabbitMQ streams.
Just in case someone else needs it, this is the working configuration (in the context.xml file of my application):
Code:
<Resource name="jms/MyConnectionFactory"
type="javax.jms.ConnectionFactory"
factory="com.rabbitmq.jms.admin.RMQObjectFactory"
username="user"
password="pwd"
virtualHost="my_VH"
host="myRabbitMQ_host"
channelsQos="100"
threadsPerConnection="2"
cleanUpServerNamedQueuesForNonDurableTopicsOnSessionClose="true"/>
<ResourceLink global="jms/MyConnectionFactory"
name="jms/MyConnectionFactory"
type="javax.jms.ConnectionFactory"/>
<Resource auth="Application"
name="jms/myChannel"
type="javax.jms.Topic"
factory="com.rabbitmq.jms.admin.RMQObjectFactory"
destinationName="myChannel"
amqp="true"
amqpExchangeName="jms.durable.topic"
amqpRoutingKey="jms/myChannel"
amqpQueueName="myChannel"/>
<ResourceLink global="jms/myChannel"
type="javax.jms.Topic"
name="jms/myChannel"/>
Code:
messaging.jms.context:_container_ messaging.jms.jndiPrefix:jms messaging.jms.connectionFactory:MyConnectionFactory messaging.jms.encoding:json
I'm using it with RabbitMQ 3.10.1, and the web application is deployed in a tomcat cluster.
Comment