Re: DSL Logging not outputting to the logs

2013-12-02 Thread Claus Ibsen
The log uses the route name as the logger name by default. You can try to specify a logger name to use with the 3 args version public Type log(LoggingLevel loggingLevel, String logName, String message) { And do you run your Camel app is some container or does this happen also from an unit

Re: DSL Logging not outputting to the logs

2013-12-02 Thread Raul Kripalani
Are you getting any other log statements printed out to your 'out' console appender? Given that you've set the root log level to DEBUG in your log4j configuration, you should be seeing a lot of log noise from Camel. If you don't, your container may not be picking up your log4j configuration

Re: set property before starting

2013-12-02 Thread anakin59490
Hi, It doesn't work by using properties file, this is what i tried : In my route, fromF(ftp://{{user.name}}:%s@xx//echange/MassPayment/IN/?noop=falseinitialDelay=0idempotent=truestepwise=false;, decryptedPwd) -- OK, it works ! but if i use my properties file :

Random unsuccessful read from file

2013-12-02 Thread martin11
Hello, I have a route triggered by timer where I read data (zulu time) from file (using poolEnrich) and at the end of route I replace data in file for next route iteration. Now after deploy on server I found following problem: - sometimes data are not loaded from file and poolEnrich return only

Re: Persist headers when using cache

2013-12-02 Thread marioradev
EventDrivenConsumerRoute[Endpoint[cache://http-namespaces-softwareag-com-EDA-WebM-Sample-PulsePressRelease-default] - Channel[sendTo(Endpoint[nervDefaultJMS://topic:Event::WebM::Sample::Pulse::PressRelease?disableReplyTo=true])]] -- View this message in context:

Re: Random unsuccessful read from file

2013-12-02 Thread Claus Ibsen
I suggest to set a timeout option on the pollEnrich as suggested http://camel.apache.org/content-enricher.html Depending on the Camel release AFAIR then without a timeout option it may use receiveNoWait which could potentially not detect any new files/messages. With the timeout it ensures to give

Re: set property before starting

2013-12-02 Thread Claus Ibsen
Yes %s is a replacer in the String.format method. See the javadoc of how that works. Its expected to not be possible to use in a .properties file. You still need to use fromF(url, password) and pass in the decryped password as the 2nd parameter. fromF is using String.format under the covers.

camel-servlet in a Spring Web MVC app?

2013-12-02 Thread furchess123
Hi, we have an existing fairly mature Spring Web MVC application that runs with an embedded Jetty. The application also implements Spring Security. We have also successfully used some Camel routing within the application (with file and message queue endpoints.) My question: Is it possible to

Certificate issues when upgrading from 2.8 to 2.10

2013-12-02 Thread rouble
Camel Gurus, I am running Camel 2.8, and to proxy a https web service I use the following simple route: from(servlet:///proxyWebService/api/?matchOnUriPrefix=true) .process(myProcessor) .to(https4://realWebService:8443/api/?bridgeEndpoint=truethrowExceptionOnFailure=false); This

unmarshal CDATA sections

2013-12-02 Thread ykoer
Hi, is there a way to umarshal XML with CDATA sections and back using jaxb in camel routes? This is my XML: ErrorPayload/Payload/Error I created a test route to unmarshal and marshal in series: DataFormat jaxbError = new JaxbDataFormat(error.model); from(direct:error) .unmarshal(jaxbError)

Re: unmarshal CDATA sections

2013-12-02 Thread Henrique Viecili
Unfortunately no, not with the standard jaxb implementation. You'll have to use custom plugin and adapters if you want to use CDATA sections in your xml marshaling/unmarshaling Henrique Viecili On Tue, Dec 3, 2013 at 7:37 AM, ykoer yusuf.k...@gmail.com wrote: Hi, is there a way to umarshal

camel XML routing for Stomp to JMS Messaging

2013-12-02 Thread javag
I have STOMP message producer in client and JMS message consumer in server. Since STOMP does not support MapMessage, I have JSON as Stomp message body. I must define routing in camel XML like if from JSON message body foo is equal to x then route to queue A, if foo is equal to y then route to