How to make error messages more useful?

2011-06-01 Thread Brendan Long
I'm working on a Camel route and I keep having error messages that look like this: TransactionErrorHandlerWARN Transaction rollback (0x1b78efd8) for ExchangeId: ID:hostname-49931-1306960558824-0:1:1:1:30 due exception: Exception occurred during execution on the exchange: ... Is there any

Re: email listener

2011-05-26 Thread Brendan Long
You might find Camel useful: http://camel.apache.org/mail.html http://camel.apache.org/activemq.html On 5/26/2011 1:54 PM, fachhoch wrote: > I want an email listner, whenever a new email arrives in a particular > inbox , I want a jms message to be sent to my listener , does active mq > provid

Re: ActiveMQ: Advisory for MessageConsumed

2011-05-24 Thread Brendan Long
By default, doesn't ActiveMQ use auto-acknowledge mode? If you change that to "transacted", throwing an exception should make Spring roll back the transaction. On 05/24/2011 07:13 AM, Dejan Bosanac wrote: > Hi, > > the advisory is sent when the message is acknowledged to the broker (as > consumed)

Are there any situations where I shouldn't use the NIO transport?

2011-05-23 Thread Brendan Long
I asked this on StackOverflow too but didn't many responses, so I figured I'd try it here: http://stackoverflow.com/questions/6062807/nio-disadvantages-in-activemq I've seen several optimization guides saying that one step is to enable NIO because it uses fewer threads, and that seems like good a

Re: Execution of JMS message listener failed, and no ErrorHandler has been set.

2011-05-23 Thread Brendan Long
t; > > > > the exceptionListener accessor delegates to getConfiguration().set... > > so if "configuration" is set after the exceptionListener it will override. > > One way to eliminate this possibility is to set the exceptionListener > on your jmsMediaTransferConfig bean.

Re: Session.SESSION_TRANSACTED in example code wrong??

2011-05-20 Thread Brendan Long
Right before listing valid values, it says "ignored if the session is transacted.", so any value is legal in that case. The person writing the example probably though that Session.SESSION_TRANSACTED was more clear than null. On 5/20/2011 11:17 AM, IBeaumont wrote: > I'm looking at the Vendor.java

Execution of JMS message listener failed, and no ErrorHandler has been set.

2011-05-20 Thread Brendan Long
Hi, I'm just wondering if there's any way to get rid of this message: WARN org.apache.camel.component.jms.JmsMessageListenerContainer - Execution of JMS message listener failed, and no ErrorHandler has been set. I tried setting an error handler on my ActiveMQComponent: That didn'