You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by sbarlabanov <co...@sergiy-barlabanov.de> on 2012/08/17 12:58:23 UTC

JEE Resource Adapter and ActiveMQConnectionFactory

Hi,
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
functionality.
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,
Sergiy



--
View this message in context: http://activemq.2283324.n4.nabble.com/JEE-Resource-Adapter-and-ActiveMQConnectionFactory-tp4655236.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: JEE Resource Adapter and ActiveMQConnectionFactory

Posted by damu <to...@yahoo.com>.
I am facing exactly the same issue. Did you manage to solve it? If yes,
please share your solution. 

Thanks



--
View this message in context: http://activemq.2283324.n4.nabble.com/JEE-Resource-Adapter-and-ActiveMQConnectionFactory-tp4655236p4672881.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.