activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbarlabanov <>
Subject JEE Resource Adapter and ActiveMQConnectionFactory
Date Fri, 17 Aug 2012 10:58:23 GMT
we are using ActiveMQ 5.6.0 resource adapter to send messages to an ActiveMQ
broker. According to the documentation and examples,
ActiveMQConnectionFactory/ActiveMQConnection allows to configure the desired
redelivery policy for example.
The problem is that when using ActiveMQ resource adapter, it returns not the
standard ActiveMQConnectionFactory/ActiveMQConnection classes, but those
from org.apache.activemq.ra package. And they do not provide such
The only way to provide some connection factory specific properties (e.g.
redelivery policy) is to use reflection and access the private method
createConnection(ActiveMQConnectionRequestInfo connectionRequestInfo).
Yes it is possible to set redelivery policy using Resource Adapter
configuration. But there is only one resource adapter in the app server and
multiple connection factories, which have different requirements on
redelivery policies. It is possible to do this using standard ActiveMQ
client API. But it is not possible to do this via the resource adapter.
What would be nice, is to make ActiveMQConnectionFactory from
org.apache.activemq.ra package to accept the same configuration properties
like the standard ActiveMQConnectionFactory from org.apache.activemq.
Or may be, should createConnection(ActiveMQConnectionRequestInfo
connectionRequestInfo) method be public?

Best regards,

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message