hi,

im using activemq-rar-5.7.0 to connect external broker to glassfish app
server.

so far communication works fine - however i want to change the redelivery
policy now

* I can do so on the resource-adapter using the fields defined in
ActiveMQConnectionSupport (e.g. InitialRedeliveryDelay etc.)

browsing through the ra-code, i'm wondering why the settings from the
resourceadapter are not copied to the ActiveMQManagedConnectionFactory


ActiveMQManagedConnectionFactory.setResourceAdapter() - only a few
properties are taken over from the MessageResourceAdapter.*

*So this means that I have to configure the redelivery-policy on the
ActiveMQManagedConnectionFactory. I think that it should work work like
this:

- I have the option to define all properties from ActiveMQConnectionSupport
on the MessageResourceAdapter
- I also have the option to define all properties from
ActiveMQConnectionSupport on the ActiveMQManagedConnectionFactory - if i
don't set a property here, then the values from the resource-adapter will
be used

right?

If yes (as far as i understand) the
ActiveMQManagedConnectionFactory.setResourceAdapter() should be adjusted in
order to copy over all the properties from the resourceadapter.

Furthermore it seems that the prefetchPolicy will always be overwritten
with the settings from the resourceadapter:

if (getOptimizeDurableTopicPrefetch() != null) {

setOptimizeDurableTopicPrefetch(baseInfo.getOptimizeDurableTopicPrefetch());
            }

... because ActiveMQConnectionRequestInfo will always return a
prefetch-policy (so in this case I'm not able to overwrite the prefetch
policy on the connection-factory level)

Furthermore I think that the ra.xml could/should be adjusted in order to
define all config-properties available on the ActiveMQResourceAdapter and
ActiveMQManagedConnectionFactory


Please clarify whether my assumptions are right (and the ra could be
improved here) - maybe my assumptions are wrong?

thank you!
*
*

Reply via email to