Re: Email character encoding?

2010-06-24 Thread Willem Jiang
Hi Mattias, You don't need to encoding the subject yourself, you just need to set the charset name on the exchange, then camel-mail will take care of it. Did you try out this code to send the subject ? producerTemplate.send(emailRecipientUri, new Processor() { void process(Exchange exchang

Re: Clustering with camel-quartz

2010-06-24 Thread Jim Talbut
On 25/06/2010 06:17, Claus Ibsen wrote: I think the reason is the scheduler is started before the other routes has been fully started. And quartz starts very quick. We could add an option so you can configure a delay option so it can be started with delay. It has a startDelayed method: http://ww

Re: Clustering with camel-quartz

2010-06-24 Thread Claus Ibsen
On Thu, Jun 24, 2010 at 7:29 PM, Ingo Düppe wrote: > Hello, > > I found still some issues about clustering camel-quartz component (based > on the current trunk version) > > First, why are stateful triggers are unscheduled on a graceful shutdown. > I guess this causes, that the trigger is deleted w

Re: Clustering with camel-quartz

2010-06-24 Thread Claus Ibsen
On Thu, Jun 24, 2010 at 7:29 PM, Ingo Düppe wrote: > Hello, > > I found still some issues about clustering camel-quartz component (based > on the current trunk version) > > First, why are stateful triggers are unscheduled on a graceful shutdown. > I guess this causes, that the trigger is deleted w

Re: Problem with maintaining a JMS subscription after waking from sleep

2010-06-24 Thread huntc
Claus Ibsen-2 wrote: > > I think we can fix the issue with a custom exceptionListener which > fixes the null message. > > Can you test it by creating a custom javax.jms.ExceptionListener class > and then set the message to a non null value. > > And in Camel you can register the listener using

Re: Clustering with camel-quartz

2010-06-24 Thread Ingo Düppe
Hello, I found still some issues about clustering camel-quartz component (based on the current trunk version) First, why are stateful triggers are unscheduled on a graceful shutdown. I guess this causes, that the trigger is deleted within the database. So not only the node that is shutting down l

Re: Email character encoding?

2010-06-24 Thread Mattias Severson
And there is more: The http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/mail/javamail/MimeMessageHelper.html MimeMessageHelper gives more options to send both plain text and html formatted mail in the same message (to support all kinds of email clients), as well

Re: Email character encoding?

2010-06-24 Thread Mattias Severson
Spring has a interface called http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/mail/javamail/JavaMailSender.html JavaMailSender . With it one can create a http://java.sun.com/products/javamail/javadocs/javax/mail/internet/MimeMessage.html MimeMessage that allows

Re: Email character encoding?

2010-06-24 Thread Mattias Severson
Yes, I also read about the US-ASCII encoding. Consequently, I tried to use http://java.sun.com/products/javamail/javadocs/javax/mail/internet/MimeUtility.html#encodeText%28java.lang.String,%20java.lang.String,%20java.lang.String%29 MimeUtility.encodeText(...) with "B" encoding to base 64 encode

Re: Email character encoding?

2010-06-24 Thread Claus Ibsen
On Thu, Jun 24, 2010 at 3:37 PM, Willem Jiang wrote: > Claus Ibsen wrote: >> >> On Thu, Jun 24, 2010 at 2:52 PM, Willem Jiang >> wrote: >>> >>> Hi, >>> >>> I just check the Java document of MimeMessage[1], the message subject >>> *must* >>> contain only US-ASCII characters, maybe that cause your

Re: Email character encoding?

2010-06-24 Thread Willem Jiang
Claus Ibsen wrote: On Thu, Jun 24, 2010 at 2:52 PM, Willem Jiang wrote: Hi, I just check the Java document of MimeMessage[1], the message subject *must* contain only US-ASCII characters, maybe that cause your problem. [1]http://java.sun.com/products/javamail/javadocs/javax/mail/internet/MimeM

Re: Email character encoding?

2010-06-24 Thread Claus Ibsen
On Thu, Jun 24, 2010 at 2:52 PM, Willem Jiang wrote: > Hi, > > I just check the Java document of MimeMessage[1], the message subject *must* > contain only US-ASCII characters, maybe that cause your problem. > > [1]http://java.sun.com/products/javamail/javadocs/javax/mail/internet/MimeMessage.html

Re: Email character encoding?

2010-06-24 Thread Willem Jiang
Hi, I just check the Java document of MimeMessage[1], the message subject *must* contain only US-ASCII characters, maybe that cause your problem. [1]http://java.sun.com/products/javamail/javadocs/javax/mail/internet/MimeMessage.html Willem Jiang wrote: Mattias Severson wrote: Hi, I am havi

Re: Email character encoding?

2010-06-24 Thread Willem Jiang
Mattias Severson wrote: Hi, I am having trouble sending ISO-8859-1 characters, e.g. åäö, in emails. I have tried to set the defaultEncoding option of the http://camel.apache.org/mail.html Camel Mail component to ISO-8859-1, but that did not solve the problem. The sender is implemented as p

Re: Email character encoding?

2010-06-24 Thread Claus Ibsen
On Wed, Jun 23, 2010 at 8:16 AM, Mattias Severson wrote: > > Hi, > > I am having trouble sending ISO-8859-1 characters, e.g. åäö, in emails. I > have tried to set the defaultEncoding option of the > http://camel.apache.org/mail.html Camel Mail  component to ISO-8859-1, but > that did not solve the

Re: sftp with privateKeyFile using camel-ftp

2010-06-24 Thread Bengt Rodehav
Glad to be of help - as others help me. BTW just got an answer from Atsuhiko at Jcraft. He will try to fix this tonight while watching Japan vs Denmark. Had to wish him good luck against Denmark - sorry... Being Swedish I normally support Denmark and Norway when we're not represented ourselves. Bu

Re: sftp with privateKeyFile using camel-ftp

2010-06-24 Thread Claus Ibsen
Hi Bengt Thanks for sharing this information. Nice that you got the attention from JCraft. Then they may fix this in the near future. And thanks for helping out with the FTP component of Camel. Its now better thanks to you. On Thu, Jun 24, 2010 at 8:53 AM, Bengt Rodehav wrote: > Claus, > > It