-
1. Re: Some Questions to dynamical Routing with beanRef and pop3-messages
davsclaus Feb 17, 2009 12:07 PM (in response to airber)Then if it's possible to call the method in beanRef with a custom parameter?
i.e. something like: from("activemq:from1").beanRef("routerBean", "route(myparam)");
No you can not do this. But it is an interesting idea
You can however use the dynamic recipient list EIP
http://camel.apache.org/recipient-list.html
And store the URI in a header. The URI can be "bean:routerBean.methodname"
About mail stuff. People have had minor issues with this due different mail servers, platforms, and what they had on classpath. Could you try the imap protocol that might work better.
I kinda recall some users having trouble with mail. But maybe it was empty subjects and not empty bodies. Well you can try search the apache camel user forum using nabble or mark mail.
Is the mail plain text?
-
2. Re: Some Questions to dynamical Routing with beanRef and pop3-messages
airber Feb 18, 2009 4:47 AM (in response to davsclaus)Hi thanks for your help,
I checked the mail format and this is send as HTML Mail.
I tried to get messages in PlainText Format and the body is already injected and could be parsed by the bean.
Now the problem is that the mail i get could be in both formats. Any idea to solve this problem that i can get mails in both formats?
thanks
airber
-
3. Re: Some Questions to dynamical Routing with beanRef and pop3-messages
davsclaus Feb 18, 2009 12:00 PM (in response to airber)Hi
There is a content type option on the mail endpoint
http://camel.apache.org/mail.html
Try setting it to: text/html for your html mails.