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
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?
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?