Bitronix With ActiveMQ

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bitronix With ActiveMQ

urciolo
Is there a way with Bitronix to reference redelivery policies and prefetch policies using the driver properties?


    <bean id="testActiveMQJmsFactory" class="bitronix.tm.resource.jms.PoolingConnectionFactory" init-method="init"
        destroy-method="close">
        <property name="className" value="org.apache.activemq.ActiveMQXAConnectionFactory" />
        <property name="uniqueName" value="activemq" />
        <property name="maxPoolSize" value="25" />
        <property name="twoPcOrderingPosition" value="-1" />
        <property name="driverProperties">
            <props>
                <prop key="brokerURL">orderedfailover:tcp://localhost:61616</prop>
                <prop key="redeliveryPolicy">
                    <bean class="org.apache.activemq.RedeliveryPolicy">
                        <property name="maximumRedeliveries" value="999999999" />
                    </bean>
                </prop>
                <prop name="prefetchPolicy" ref="activeMQPrefetchPolicy" />
            </props>

        </property>
    </bean>
Reply | Threaded
Open this post in threaded view
|

Re: Bitronix With ActiveMQ

gtully
not sure bout bitronix, but you can put the redelivery policy config
in the broker url, that may help, cause you got to provide the some
where, right?
eg:
tcp://localhost:61617?jms.redeliveryPolicy.maximumRedeliveries=1

On 21 October 2010 20:05, urciolo <[hidden email]> wrote:

>
> Is there a way with Bitronix to reference redelivery policies and prefetch
> policies using the driver properties?
>
>
>    <bean id="testActiveMQJmsFactory"
> class="bitronix.tm.resource.jms.PoolingConnectionFactory" init-method="init"
>        destroy-method="close">
>        <property name="className"
> value="org.apache.activemq.ActiveMQXAConnectionFactory" />
>        <property name="uniqueName" value="activemq" />
>        <property name="maxPoolSize" value="25" />
>        <property name="twoPcOrderingPosition" value="-1" />
>        <property name="driverProperties">
>            <props>
>                <prop
> key="brokerURL">orderedfailover:tcp://localhost:61616</prop>
>                <prop key="redeliveryPolicy">
>                    <bean class="org.apache.activemq.RedeliveryPolicy">
>                        <property name="maximumRedeliveries"
> value="999999999" />
>                    </bean>
>                </prop>
>                <prop name="prefetchPolicy" ref="activeMQPrefetchPolicy" />
>            </props>
>        </property>
>    </bean>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Bitronix-With-ActiveMQ-tp3006122p3006122.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



--
http://blog.garytully.com

Open Source Integration
http://fusesource.com