Re: Camel Context modularisation

2013-03-27 Thread Claus Ibsen
Hi Welcome to the community. See this FAQ http://camel.apache.org/how-do-i-import-routes-from-other-xml-files.html On Wed, Mar 27, 2013 at 11:29 PM, fruxo wrote: > Hi all, > I am new to Camel and, after a few days of investigations, it does not seem > to me that it is currently possible to ach

Re: JASYPT String Decryption

2013-03-27 Thread Claus Ibsen
On Wed, Mar 27, 2013 at 10:47 PM, wrote: > Hi, > Please advise if anyone know how to decrypt the jasyped value inside a class ? > > We are planning to encrypt the password values using jasypt and store in a > Databases. > > We want to decrypt the value back inside a bean class. Please advise if

Re: Clearing ThreadLocal when exchange completes

2013-03-27 Thread Claus Ibsen
On Wed, Mar 27, 2013 at 10:02 PM, Christian Müller wrote: > Isn't it called in a separate thread, isn't it? > Ah yeah, then use this as base class http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/support/SynchronizationAdapter.html And return false from the allowHandover

Re: CamelSpringJUnit4ClassRunner vs CamelSpringTestSupport

2013-03-27 Thread Willem jiang
I think the document means some pre or post camel context test support setting up. Just like the you cannot call the assert* method if you are using SpringJUnitClassRunner, you can consider to use the static imports to use the method in CamelSpringTestSupport. -- Willem Jiang Red Hat, Inc.

Re: Handle multiple exceptions in scala dsl

2013-03-27 Thread Willem jiang
Hi I just filled a JIRA[1] for it, and will try to fix it today. [1]https://issues.apache.org/jira/browse/CAMEL-6221 -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjia

Re: Camel Context modularisation

2013-03-27 Thread Willem jiang
Hi RouteContext can do the job that you want to do. Here is an Example[1] for how to use it. [1]http://camel.apache.org/how-do-i-import-routes-from-other-xml-files.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Bl

Camel Context modularisation

2013-03-27 Thread fruxo
Hi all, I am new to Camel and, after a few days of investigations, it does not seem to me that it is currently possible to achieve the same level of Camel-context modularisation obtainable with Spring-contexts, am I right? The use-case I am thinking of might be simply expressed as the need to: 1.

Re: JASYPT String Decryption

2013-03-27 Thread Christian Müller
http://www.jasypt.org Sent from a mobile device Am 27.03.2013 22:48 schrieb : > Hi, > Please advise if anyone know how to decrypt the jasyped value inside a > class ? > > We are planning to encrypt the password values using jasypt and store in a > Databases. > > We want to decrypt the value back

JASYPT String Decryption

2013-03-27 Thread ganeshkumar.kanagavel
Hi, Please advise if anyone know how to decrypt the jasyped value inside a class ? We are planning to encrypt the password values using jasypt and store in a Databases. We want to decrypt the value back inside a bean class. Please advise if it's possible Thanks Ganesh

Re: Ignore JMSReplyTo

2013-03-27 Thread Scott England-Sullivan
Hi Marco, You need to set the parameter 'disableReplyTo=true' on the jms consumer endpoint. That should fix it. Best Regards, Scott ES On Wed, Mar 27, 2013 at 4:04 PM, Marco Crivellaro wrote: > Hi, > I have a very simple route where messages are sent to an ActiveMQ queue > with > JMSReplyTo he

Ignore JMSReplyTo

2013-03-27 Thread Marco Crivellaro
Hi, I have a very simple route where messages are sent to an ActiveMQ queue with JMSReplyTo header set which I would like to ignore. I cannot avoid setting the header as messages are pushed using composite destination by another component. I've set the route as following but the messages are still

Re: Clearing ThreadLocal when exchange completes

2013-03-27 Thread Christian Müller
Isn't it called in a separate thread, isn't it? Sent from a mobile device Am 27.03.2013 08:14 schrieb "Claus Ibsen" : > You can use this method on the Exchange > > > http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Exchange.html#addOnCompletion(org.apache.camel.spi.Synchr

Re: Links to empty pages on website?

2013-03-27 Thread Christian Müller
Yeah, but it works in Confluence. Something went wrong with our Confluence export... Sent from a mobile device Am 27.03.2013 08:15 schrieb "AlanFoster" : > I wonder if confluence allows link checking at all? > > It would be be nice to have an automated process of checking dead links > > > > -- >

Re: Handle multiple exceptions in scala dsl

2013-03-27 Thread Claus Ibsen
On Wed, Mar 27, 2013 at 3:30 PM, dhavalsdoshi wrote: > Hi, > What's the equivalent syntax in Scala DSL for doing the following Java DSL > onException(IOException.class, SQLException.class, > JMSException.class).maximumRedeliveries(5) > Scala DSL only has > handle[T] > which can take only one

Re: Possible memory leak in org.apache.activemq.pool.PooledSession

2013-03-27 Thread vadim
Hello, Is there an update on this issue? Sergey, thanks for proposed solution. I am not sure it works for PollingConsumer case, i.e. it might create a problem in such case. We use both EventDriven and polling consumers. I can see how commenting out addConsumer in PooledSession resolves the memory

Re: Intermittent test failures

2013-03-27 Thread Claus Ibsen
On Wed, Mar 27, 2013 at 3:24 PM, Shency Revindran wrote: > Hi Claus Ibsen, > > Thanks for your reply. > > May I request you to please delete my post ASAP from the thread? (or please > direct me how to do it). > > I am talking about below thread > > http://grokbase.com/t/camel/users/133b5fh1h1/int

Handle multiple exceptions in scala dsl

2013-03-27 Thread dhavalsdoshi
Hi, What's the equivalent syntax in Scala DSL for doing the following Java DSL onException(IOException.class, SQLException.class, JMSException.class).maximumRedeliveries(5) Scala DSL only has handle[T] which can take only one exception type, I believe.Please help. -- View this message in c

Re: Intermittent test failures

2013-03-27 Thread Shency Revindran
Hi Claus Ibsen, Thanks for your reply. May I request you to please delete my post ASAP from the thread? (or please direct me how to do it). I am talking about below thread http://grokbase.com/t/camel/users/133b5fh1h1/intermittent-test-failures#top Thank you so much, Shency __

Retry based on HTTP response codes

2013-03-27 Thread vss123
Hi, We use camel 2.10.3 with Scala DSL. We have route that does a http post. We want to retry based on the response code. For e.g. no retries for 4xx and 2 retries for 5xx We tried using handle[HttpOperationFailedException] but not sure how to get the response code within that. Can you help us w

Re: CamelSpringJUnit4ClassRunner vs CamelSpringTestSupport

2013-03-27 Thread Christian Müller
This is not possible. We should update the documentation. It's miss leading... Best, Christian On Wed, Mar 20, 2013 at 9:50 AM, scottj wrote: > hello, > I would like to use the CamelSpringJUnit4ClassRunner annotations on my > tests. I've read the instructions on > http://camel.apache.org/spring

Re: error in plugin maven-compiler-plugin:2.5

2013-03-27 Thread Claus Ibsen
Hi You need to install the Java SDK. And have JAVA_HOME point to the SDK. As it has the needed tools.jar. Your JAVA_HOME points to the Java JRE. You may already have installed the SDK. If so then change your JAVA_HOME to point to that. On Wed, Mar 27, 2013 at 1:10 PM, takidean wrote: > hi w

error in plugin maven-compiler-plugin:2.5

2013-03-27 Thread takidean
hi when i use to execute the example in chapter2 spring from package camelinaction-source-2103 i get this error !! on project chapter2-spring: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre6\..\lib\tools.jar -> [Help 1 Failed to execute goal org.apache.maven.plugins:maven-co

Re: Why doesn't this ErrorHandler work?

2013-03-27 Thread Marco Westermann
Hi, maybe the predicat body().isNull() is never true. Then nothing would happen.. you can try this also with a content based route .choice .when(body().isNull()) .log("body is nulll") .otherwise() .log("body is ${body}) remember that for example an empty string "" is n

Re: Why doesn't this ErrorHandler work?

2013-03-27 Thread scottj
ok, forgot to setHandleFault() works fine now -- View this message in context: http://camel.465427.n5.nabble.com/Why-doesn-t-this-ErrorHandler-work-tp5729927p5729928.html Sent from the Camel - Users mailing list archive at Nabble.com.

Why doesn't this ErrorHandler work?

2013-03-27 Thread scottj
I have the following route from("activemq:incoming") .errorHandler(defaultErrorHandler().log("boo").maximumRedeliveries(3).useOriginalMessage().retryAttemptedLogLevel(LoggingLevel.WARN)) .log("foo") .filter(body().isNull()).setFaultBody(constant("fault happened")) .log("bar") .process(storageProce

Re: using Camel-Servlet component to consume application/xml message

2013-03-27 Thread Claus Ibsen
Hi You can configure the jms endpoint with jmsMessageType=Bytes That tells Camel to force and use a javax.jmx.BytesMessage for the JMS message. Then you dont need to convert the message beforehand. And mind about stream caching for big payloads. The http component forces using that http://camel.

Re: using Camel-Servlet component to consume application/xml message

2013-03-27 Thread yogu13
Hello Claus, We are converting the text message into bytes because an issue with ActiveMQ... ActiveMQ text message have a restriction on payload size shouldnt be greater than 64K as they use the API DataOutputStream.writeUTF8 which has this restriction. I have logged it on to their forums but not

Re: using Camel-Servlet component to consume application/xml message

2013-03-27 Thread Claus Ibsen
On Wed, Mar 27, 2013 at 11:17 AM, yogu13 wrote: > Hi Claus. > > Thanks for your time..so based on the above route .. i should have seen the > JMS message having the byte payload of the XML but that doesnt happen. > > As i understand from the class > https://svn.apache.org/repos/asf/camel/trunk/com

Re: using Camel-Servlet component to consume application/xml message

2013-03-27 Thread yogu13
Hi Claus. Thanks for your time..so based on the above route .. i should have seen the JMS message having the byte payload of the XML but that doesnt happen. As i understand from the class https://svn.apache.org/repos/asf/camel/trunk/components/camel-http4/src/main/java/org/apache/camel/component/

Re: Question about the implementation of routepolicy.quartz.ScheduledRoutePolicy

2013-03-27 Thread Claus Ibsen
On Mon, Mar 25, 2013 at 9:08 PM, Chris Wolf wrote: > I am looking at code in > org.apache.camel.routepolicy.quartz.ScheduledRoutePolicy - > the code that starts/stops/resumes/suspends the route it is a policy for. > > The question is why is it separately acting on the Consumer? I thought > if you

Re: Question about the implementation of routepolicy.quartz.ScheduledRoutePolicy

2013-03-27 Thread Claus Ibsen
On Wed, Mar 27, 2013 at 3:06 AM, Chris Wolf wrote: > Thanks for the clarification on that. The only problem is that, when > using CronScheduledRoutePolicy > on a route with an FTP endpoint configured as a consumer, it does NOT > seem to prevent the FTP > consumer to stop polling even after it has

Re: using Camel-Servlet component to consume application/xml message

2013-03-27 Thread Claus Ibsen
Hi Yes the servlet component can support any kind of data the servlet container can handle. eg that is HTTP. Usually the caller sets the "Content-Type" header with a value of "text/xml" to tell you that the http body is xml based. On Wed, Mar 27, 2013 at 9:06 AM, yogu13 wrote: > Hi,Wanted to kn

Re: Camel velocity template internationalization

2013-03-27 Thread Claus Ibsen
On Tue, Mar 26, 2013 at 7:44 PM, paramjyotsingh wrote: > Claus, > > Thanks for the reply. > > I could have locale setup as JVM argument, but could you please provide > information about property or header I need to set in exchange for locale, > if I plan to have language/locale per exchange. > > C

using Camel-Servlet component to consume application/xml message

2013-03-27 Thread yogu13
Hi,Wanted to know if i can use Camel-Servlet to consume a HTTP message having content type as "text/xml" within which the payload has an xml ...my route configuration is as a below the HTTP request

Re: SMPP stop route problem

2013-03-27 Thread fclose
Christian, I still have a question about what you said Christian Mueller wrote > If you want to return another error code, simply catch the exception in > your route and rethrow an org.jsmpp.extra.ProcessRequestException (with > the > error code you want) which is returned to the SMSC. As my r

Re: Links to empty pages on website?

2013-03-27 Thread AlanFoster
I wonder if confluence allows link checking at all? It would be be nice to have an automated process of checking dead links -- View this message in context: http://camel.465427.n5.nabble.com/Links-to-empty-pages-on-website-tp5729759p5729859.html Sent from the Camel - Users mailing list archiv

Re: Clearing ThreadLocal when exchange completes

2013-03-27 Thread Claus Ibsen
You can use this method on the Exchange http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Exchange.html#addOnCompletion(org.apache.camel.spi.Synchronization) On Tue, Mar 26, 2013 at 2:13 PM, davelund wrote: > We are currently using ThreadLocal to store some information t