I am almost there
actually, I've included activemq-core-5.4.2.jar which seems to contain the
desired class
then I've added the absolute path to the activemq.xml file because I could
not make it work from inside eclipse (I know, this is probably more like
eclipse's fault)
then I've changed some invalid XML such as
<!-- <destinationPolicy> -->
<!-- <policyMap> -->
<!-- <policyEntries> -->
<!-- <policyEntry queue=">"
producerFlowControl="false" prioritizedMessages="true" useCache="false"
expireMessagesPeriod="0" queuePrefetch="1" /> -->
<!-- <pendingQueuePolicy> -->
<!-- <vmQueueCursor /> -->
<!-- </pendingQueuePolicy> -->
<!-- </policyEntries> -->
<!-- </policyMap> -->
<!-- </destinationPolicy> -->
and replaced with site's default
<destinationPolicy>
<policyMap>
<policyEntries>
<policyEntry topic=">" producerFlowControl="true">
<!-- The constantPendingMessageLimitStrategy is used to
prevent
slow topic consumers to block producers and affect
other consumers
by limiting the number of messages that are
retained
For more information, see:
http://activemq.apache.org/slow-consumer-handling.html
-->
<pendingMessageLimitStrategy>
<constantPendingMessageLimitStrategy limit="1000"/>
</pendingMessageLimitStrategy>
</policyEntry>
<policyEntry queue=">" producerFlowControl="true"
memoryLimit="1mb">
<!-- Use VM cursor for better latency
For more information, see:
http://activemq.apache.org/message-cursors.html
<pendingQueuePolicy>
<vmQueueCursor/>
</pendingQueuePolicy>
-->
</policyEntry>
</policyEntries>
</policyMap>
</destinationPolicy>
and now it's just a matter of adjust the datasource from inside activemq.xml
<persistenceAdapter>
<jdbcPersistenceAdapter dataSource="#MyDataSource"/>
</persistenceAdapter>
I'll try activemq-spring-[version].jar soon, since core will probably give
me more headaches when the classloader try to load some classes twice.
Almost there, people, thanks for your help again
[]
Leo
On Fri, Jan 31, 2014 at 2:31 PM, Andy <[email protected]>wrote:
> A simple google reveals 'activemq-spring-[version].jar' - Add that to
> your path and it should work.
>
>