camel-mail - need to force a close/reconnect

2011-07-10 Thread dcheckoway
t;reconnectOnException=true|false" property? Or even a "reconnectAfterIterations=nnn" or "maxConnectionLifeSeconds=nnn" property that would force the connection to be closed and reestablished after some number of iterations or seconds. What do you think? - Dan Checko

Re: aggregate + split with JMS...possible?

2011-05-06 Thread dcheckoway
g.com/ibsen/ > > > -- > If you reply to this email, your message will be added to the discussion > below: > > http://camel.465427.n5.nabble.com/aggregate-split-with-JMS-possible-tp4375238p4376215.html > To unsubscribe from aggregate + split with J

aggregate + split with JMS...possible?

2011-05-06 Thread dcheckoway
Is it possible to use aggregate and split with ActiveMQ/JMS? What I'm interested in doing is a very simple aggregation, the goal being to reduce the sheer # of JMS messages that ActiveMQ has to deal with. "Bundling" N messages together is likely to speed up the throughput in my particular case.

Multiple WARs with same CamelContext id

2010-11-19 Thread dcheckoway
The other day I upgraded my setup to 2.5.0 and started having an issue on tomcat startup -- multiple webapps all having . I see that that issue has already been fixed: https://issues.apache.org/activemq/browse/CAMEL-3324 Thank you for fixing this. My question is...will there be a 2.5.1 at some

Re: Camel Mail issue with unsupported charset

2009-11-09 Thread dcheckoway
You bet. http://issues.apache.org/activemq/browse/CAMEL-2152 I'll see about trying to add a standalone unit test... Claus Ibsen-2 wrote: > > Could you create a JIRA ticket and attach your patch. > And if you have any kind of unit test that can verify this that would > be great as well. > --

Re: Camel Mail issue with unsupported charset

2009-11-09 Thread dcheckoway
ied instance, but also the original Message instance, so that MailConsumer.processCommit could setFlag on the original. Otherwise, the message never got marked read. Attached is a patch for camel/trunk that works. http://old.nabble.com/file/p26266245/dcheckoway-charset-fix.diff dcheckoway-charset-fix

Re: Camel Mail issue with unsupported charset

2009-11-08 Thread dcheckoway
> Did you try with this code and did it work for you? > > > On Thu, Nov 5, 2009 at 12:50 AM, dcheckoway wrote: >> >> Claus, I'm not a contributor on the Camel project, but here's what I >> would >> advocate trying in MailBinding.java, expanding the

Re: Camel Mail issue with unsupported charset

2009-11-04 Thread dcheckoway
quot; + message, e); } } } What do you think? Claus Ibsen-2 wrote: > > On Wed, Nov 4, 2009 at 7:24 PM, dcheckoway wrote: >> >> Is there any way to "intercept" the raw mail message content before it >> gets >> passed to the jav

Re: Camel Mail issue with unsupported charset

2009-11-04 Thread dcheckoway
Is there any way to "intercept" the raw mail message content before it gets passed to the java mail API? I would be happy to manually munge the Content-Type header if I detect one of the known-to-be-funky charsets in there. Claus Ibsen-2 wrote: > > On Wed, Nov 4, 2009 at 4:5

Re: Camel Mail issue with unsupported charset

2009-11-04 Thread dcheckoway
ch in the route builder? I'm painfully amateur at error handling with camel...sorry... :-) Claus Ibsen-2 wrote: > > Hi > > Can you try with 2.1-SNAPSHOT as we have messed with the camel-mail > component since it was released in 2.0.0. > > On Tue, Nov 3, 2009 at 2:1

Re: Camel Mail issue with unsupported charset

2009-11-03 Thread dcheckoway
983 message-ansi_x3.110-1983 Claus Ibsen-2 wrote: > > On Mon, Aug 3, 2009 at 2:53 PM, dcheckoway wrote: >> >> Claus, >> >> Thanks for the reply.  It is a valid charset name, but java6 has no >> knowledge of it (yet).  For example, on my linux box, it lives in

Re: Camel Mail issue with unsupported charset

2009-08-03 Thread dcheckoway
Claus, Thanks for the reply. It is a valid charset name, but java6 has no knowledge of it (yet). For example, on my linux box, it lives in /usr/share/i18n/charmaps/ANSI_X3.110-1983.gz right alongside all the other typical charsets. The mail server is whatever google uses...imap.gmail.com is th

Camel Mail issue with unsupported charset

2009-07-31 Thread dcheckoway
I'm using Camel Mail to route email messages to a handler. Works perfectly...but I've bumped into an issue whenever somebody sends an email with an unsupported charset. For example: Content-type: text/plain; charset=ansi_x3.110-1983 ...and since JDK6 has no idea wtf charset that is, I get

Re: How to control transactions when already in a transaction

2009-06-04 Thread dcheckoway
I finally got it t work as expected, but here was the deal... If I removed the "transacted=true" from the activemq component's jmsConfig (or set it to false), then it works as expected. Messages are queued as they are "sent". But maybe somebody can

Re: How to control transactions when already in a transaction

2009-06-04 Thread dcheckoway
FYI, I tried setting transacted=false in the URI for the endpoint where the transacted consumer ends up sending subsequent messages. No change in behavior...it still waits for the consumer to return before anything actually shows up in the queue. Any suggestions on how to force a new/separate tr

Re: How to control transactions when already in a transaction

2009-06-04 Thread dcheckoway
gt; > What does your route look like? > > Just a quick idea. Maybe in the producer template sendBody you could > use a JMS endpoint where you set transacted=false. > > > On Thu, Jun 4, 2009 at 6:43 PM, dcheckoway wrote: >> >> Camel 1.6.1, ActiveMQ 5.2.0, Spring 2.5.6 &

How to control transactions when already in a transaction

2009-06-04 Thread dcheckoway
Camel 1.6.1, ActiveMQ 5.2.0, Spring 2.5.6 I have a POJO consumer that gets invoked by Camel for messages on an ActiveMQ JMS queue. It's set up as transacted (JMS transaction manager). While my POJO is consuming a message, it needs to send a subsequent message (or several messages) to a differen

BUG: JMS consumer hangs while producing

2009-06-01 Thread dcheckoway
Help! I have a transactional consumer invoked by Camel for messages on "testQueueA" -- it ends up producing/sending thousands of messages to the JMS queue "testQueueB". Depending upon how many messages need to be sent, this scenario hangs. This happens when talking to ActiveMQ via TCP. I wrote