OceanTara Code Blog

February 11, 2009

spring jms config for activemq

Filed under: ActiveMQ, JMS, Java, Spring — chris @ 10:17 pm

Here are some configuration hints for spring jms. This is backed by activemq jms provider.

A few comments:

(more…)

activemq configuration hints

Filed under: ActiveMQ, JMS, Java — chris @ 9:51 pm

This was a pain to set up. But here are a few hints for non-transactional configurations.

A few notes about this setup:

(more…)

November 22, 2008

Use DefaultMessageListenerContainer instead of jmsTemplate

Filed under: ActiveMQ, JMS, Spring — chris @ 8:21 pm

The code examples on the ActiveMQ and Spring JMS sites use a straightforward jmsTemplate.receive() call. I found this to be very unstable. It would frequently leave orphaned messages in a queue that would never be picked up.

I moved to a DefaultMessageListenerContainer.java and most of my problems were solved. Here’s a sample code:

(more…)

Powered by WordPress