Re: Camel-sent email content goes to an attachment "ATT00001.xml"?

2014-06-25 Thread OrackBahama
Hi all, seems this is not a problem of Camel but of Microsoft exchange servers. See: http://support.microsoft.com/kb/969854/en-us or http://kb.mit.edu/confluence/pages/viewpage.action?pageId=4981187 Regards -- View this message in context: http://camel.465427.n5.nabble.com/Camel-sent-emai

javaMailSender not configurable as url parameter anymore ?

2014-06-02 Thread OrackBahama
Hello, configuring a custom javaMailSender in Camel java DSL seems to not work anymore (Camel 2.13.0). ... .to( "smtp://{{mail.host}}?username=xxx&password=yyy&javaMailSender=#javaMailSender" ) ... with throws ugly exceptions at me :-(, saying something about "Could not find a suitable

Re: http4 component: Possible to post message attachments as "multipart/mixed" ?

2014-01-13 Thread OrackBahama
Thank you very much for your quick and helpful information ! -- View this message in context: http://camel.465427.n5.nabble.com/http4-component-Possible-to-post-message-attachments-as-multipart-mixed-tp5745867p5745886.html Sent from the Camel - Users mailing list archive at Nabble.com.

http4 component: Possible to post message attachments as "multipart/mixed" ?

2014-01-12 Thread OrackBahama
Hi, I need to upload a camel message body (text/xml) together with files (added to camel message attachments) with dataHandlers, by posting it to a URL with the camel-http/http4 component. Works fine without attachments. Is it possible to post attachments in a multipart message (base64 encoded, b

Example for pluggable FileProcessStrategy

2013-07-04 Thread OrackBahama
Hi, I have to process files that always come in pairs with the camel file component: 1.xml 1.pdf 2.xml 2.pdf The xml file will be grabbed transformed and jaxb'd - the pdf file only attached to a message. This works fine with an aggregator (unfortunately two polling endpoints requ

logging to different (dynamic) appenders

2013-07-02 Thread OrackBahama
Hi, I would like to define the name of a logger in a camel header variable. Unfortunately this doesn't seem to work. Example: .from(...) .log( LoggingLevel.INFO, "mylogger", "MyMessage ) .to(...) is working as expected, whereas .from(...) .setHeader( "logger", constant("mylogger")) .log(

camel-mail component is "asymmetric" !

2013-01-28 Thread OrackBahama
Hi, when I send a mail message with attachments using the camel-mail component, the mail message is composed as "multipart mail message" and all of my camel-message headers are appended to the mail and being sent. But when I poll a mailbox full of those messages there is a gap (asymmetry): The ca

Re: File renaming problems under Windows

2012-09-24 Thread OrackBahama
Hi Claus, I'm not quite sure if I understand you right - you suspect Smooks for eventually not closing the InputStream or Reader internally used by StreamSource ? But that would be a systematic error or leak that happens to *all* processed files, right ? On the other hand I'm getting the rename ex

Re: File renaming problems under Windows

2012-09-19 Thread OrackBahama
Thanks Mohan, I fully agree with you - besides one point: Always checking the return value of the renameTo(...) function call is of no use if you can't rely on Windows having completed, flushed and unlocked everything to disk before returning this value. My experience is that even if the return v

Re: File renaming problems under Windows

2012-09-18 Thread OrackBahama
Hi, meanwhile I suspect Windows (or the Java VM, not Camel) to be the culprit for not unlocking files immediately after renaming. There's an extended version of the Windows MoveFile-API function (MoveFileEx) that takes extra flags to force Windows to flush copy and delete operations to disk *before

File renaming problems under Windows

2012-09-17 Thread OrackBahama
Hi, I'm getting exceptions when polling and processing files (in the same filesystem). The last camel step is moving the file into a backup or into an error directory using the parameters 'move' and 'moveFailed' of the file component. I'm aware of renaming problems if there's a different filesyst

Re: CronScheduledRoutePolicy

2012-03-21 Thread OrackBahama
Bingo, it was my fault. 1) I derived my class from CronScheduledRoutePolicy insteadof RoutePolicySupport. 2) I associated it with the wrong route, the scheduling route insteadof the route being scheduled. -- View this message in context: http://camel.465427.n5.nabble.com/CronScheduledRoutePolic

Re: CronScheduledRoutePolicy

2012-03-20 Thread OrackBahama
Maybe this could help: 17:23:50,876 DEBUG [Camel (camel) thread #2 - file://C:/Projects.. # 17:24:00,009 DEBUG [DefaultQuartzScheduler-camel_QuartzSchedulerThread] org.quartz.simpl.SimpleJobFactory: Producing instance of Job 'jobGroup-SapIDOC2Archive.job-STOP-SapIDOC2Archive', class=org.ap

Re: CronScheduledRoutePolicy

2012-03-20 Thread OrackBahama
Yes, I' am using Camel 2.9.1 -- View this message in context: http://camel.465427.n5.nabble.com/CronScheduledRoutePolicy-tp4552324p5580189.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: CronScheduledRoutePolicy

2012-03-20 Thread OrackBahama
Hi, I'm using CronScheduledPolicy to start and stop a route at certain times with the intention of having kind of a batch job. It really works fine - however I found an "unsymmetry" in the behavior of this class. To close and rollover a logfile at the end of such a batch job (logback triggering po

Re: Problem with Smooks/TypeConverter since camel 2.9.0

2012-02-07 Thread OrackBahama
Thanks for the reply - I can confirm that explicitly converting to StreamSource does work ! But I'm worrying why - by changing the camel version to 2.9 - I have to change formerly tested code ? Something in the automatic type conversion strategy must have changed. Maybe somebody can explain how

Problem with Smooks/TypeConverter since camel 2.9.0

2012-02-07 Thread OrackBahama
Hi, since the migration to camel version 2.9.0, I'm experiencing the following problem (in pseudocode for clarity ;-)). ( Was working in versions 2.7.x ... ) from( "file://inbox-with-flatfiles-in-textformat-no-xml...") .to( "smooks://smooks-config.xml" ) ; causes the following exception: Cau

Global onCompletion

2011-09-12 Thread OrackBahama
Hi, although I've read several posts for this, I'm quite unsure if the "onCompletion" construct will fit my needs. As far as I've understood, this is a hook that's called after completion of the route (when defined in front of the "from" ...). I'll explain my problem in the following example. I