Re: Question: generated keys and SQL component

2014-03-20 Thread Claus Ibsen
I logged a ticket https://issues.apache.org/jira/browse/CAMEL-7313 On Wed, Mar 19, 2014 at 11:18 AM, Claus Ibsen wrote: > Hi > > Don't think we support returning generated keys in camel-sql. Feel > free to log a JIRA ticket > > > On Tue, Mar 18, 2014 at 10:00 PM, Matt Payne wrote: >> Greetings!

Re: [JSch-users] ANNOUNCE: JSch 0.1.51

2014-03-20 Thread Bengt Rodehav
Sorry no I haven't done that. /Bengt 2014-03-19 22:39 GMT+01:00 Christian Müller : > Hi Bengt! > > Did you already pingt the SMX guys to build an OSGI bundle for that version > [1]? > > [1] > > http://search.maven.org/#search|gav|1|g%3A%22org.apache.servicemix.bundles%22%20AND%20a%3A%22org.apac

Adding custom type converter

2014-03-20 Thread Bengt Rodehav
I'm using Camel 2.12.3 running in Karaf 2.3.4. I'm trying to add a custom type converter to my context but can't get it to work. My code is essentially as follows: getContext().getTypeConverterRegistry().addTypeConverter(MmlMessage.class, InputStream.class, new MmlMessage2StringTypeConverter());

Re: sjms and multiple threads

2014-03-20 Thread Bengt Rodehav
A little recap of what the real problem was... Here is a thread on Karaf user list where I discusssed this problem: http://mail-archives.apache.org/mod_mbox/karaf-user/201403.mbox/%3CCAJ0TPGLTVuvLhaX4rJv8puqk7cirbUryaTu7=rmwzuzwza0...@mail.gmail.com%3E It turned out to be a 100 ms configured del

Re: Adding custom type converter

2014-03-20 Thread Bengt Rodehav
Sorry - an idiotic mistake from my side. I had switched the "from class" and the "to class". getContext().getTypeConverterRegistry().addTypeConverter(MmlMessage.class, InputStream.class, new MmlMessage2StringTypeConverter()); should instead be: getContext().getTypeConverterRegistry().addTypeConv

Came DSL ( Spring Routes ) on Tomcat (insted of Servicemix )

2014-03-20 Thread N.S.KARTHIK
Hi Spec : Jdk1.7 O/s : RedHat Linux Camel : Latest Question : I know using Fuse / Eclipse Ide, Camel basic Http routes can be written and executed. But Instead of Executing the same on "SERVICE MIX" env can i use Tomcat for processing the Camel routes.

Re: Came DSL ( Spring Routes ) on Tomcat (insted of Servicemix )

2014-03-20 Thread Claus Ibsen
Hi Yeah Apache Camel is just a library and its container agnostic - meaning that you can run and use Camel anywhere you want - just requires Java JVM. There is plenty of documentation how to develop web applications for Apache Tomcat (eg WAR files). There is some details here http://camel.apache

Accessing the original message from before a split

2014-03-20 Thread Bengt Rodehav
I'm using Camel 2.12.3 in Karaf 2.3.4. I have a route that processes XML message. Each incoming XML message will create three outgoing messages. I use a split() to accomplish this. I have an error handler for this route that need to access the original XML message and store that in a "failed" dir

Re: Class [org.apache.camel.spring.handler.CamelNamespaceHandler] for namespace [http://camel.apache.org/schema/spring] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler]

2014-03-20 Thread ramana
because of multi versions of spring jars -- View this message in context: http://camel.465427.n5.nabble.com/Class-org-apache-camel-spring-handler-CamelNamespaceHandler-for-namespace-http-camel-apache-org-schee-tp5748634p5749143.html Sent from the Camel - Users mailing list archive at Nabble.co

Re: Accessing the original message from before a split

2014-03-20 Thread Claus Ibsen
Store what you want as the "most original" message as a property on the exchange, then you can always get that later at any time On Thu, Mar 20, 2014 at 11:58 AM, Bengt Rodehav wrote: > I'm using Camel 2.12.3 in Karaf 2.3.4. > > I have a route that processes XML message. Each incoming XML message

Re: Question: generated keys and SQL component

2014-03-20 Thread Matt Payne
Thank you!— Sent from Mailbox for iPhone On Thu, Mar 20, 2014 at 3:10 AM, Claus Ibsen wrote: > I logged a ticket > https://issues.apache.org/jira/browse/CAMEL-7313 > On Wed, Mar 19, 2014 at 11:18 AM, Claus Ibsen wrote: >> Hi >> >> Don't think we support returning generated keys in camel-sql. Fe

Re: [JSch-users] ANNOUNCE: JSch 0.1.51

2014-03-20 Thread Willem Jiang
Don’t worry, I can help with it :) I just created a JIRA[1] for it. [1]https://issues.apache.org/jira/browse/SMX4-1725 -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem

Re: Accessing the original message from before a split

2014-03-20 Thread Bengt Rodehav
Thanks for the tip Claus! 2014-03-20 12:19 GMT+01:00 Claus Ibsen : > Store what you want as the "most original" message as a property on > the exchange, then you can always get that later at any time > > On Thu, Mar 20, 2014 at 11:58 AM, Bengt Rodehav wrote: > > I'm using Camel 2.12.3 in Karaf

Re: [JSch-users] ANNOUNCE: JSch 0.1.51

2014-03-20 Thread Bengt Rodehav
Thanks! 2014-03-20 12:54 GMT+01:00 Willem Jiang : > Don’t worry, I can help with it :) > I just created a JIRA[1] for it. > > [1]https://issues.apache.org/jira/browse/SMX4-1725 > > -- > Willem Jiang > > Red Hat, Inc. > Web: http://www.redhat.com > Blog: http://willemjiang.blogspot.com (English)

move files if message fails

2014-03-20 Thread Olaf
Hello, In my route below I'd like to move only a successfully processed file into 'done' folder. If any exception occurs or message is routed to dead letter channel I want to move the input file into failed folder. I've used &moveFailed=failed option, but it does not work. The file is just moved t

Re: JMS Message Expiration period

2014-03-20 Thread Jose
Thank you very much Willem. I'll try that. Jose -- View this message in context: http://camel.465427.n5.nabble.com/JMS-Message-Expiration-period-tp5749032p5749153.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: move files if message fails

2014-03-20 Thread Claus Ibsen
Hi This is expected as your DLC handles the exception. So remove that, or do not use it in the file route. You can still use onException to tell Camel to retry up till 10 times. And if its still a problem then the exchange is failed, and the file consumer will use the moveFailed. On Thu, Mar 20,

Re: move files if message fails

2014-03-20 Thread Olaf
Thank you very much! I need deadLetterChannel, because of custom error logging logic, which saves message with all errors into db. I think I have to do the following: onException(IOException.class) .handled(true).maximumRedeliveries(10) .retryAttemptedLogLevel(LoggingLevel.WARN).redeli

bean members with parallel processing

2014-03-20 Thread Olaf
Hello, would the following route work correctly with multiple threads? In beanRef("TestProcessor", "step2") the instance variable mapper is used, so I suppose it is not thread safe, right? Should I set the mapper as a property of the exchange? from(inputsource) .beanRef("TestP

get Route Definition by existing route?? (Advanced)

2014-03-20 Thread bdmstyle
Hello is my first post here. i want to mock my existing routes without change the routes. i found to use advicewith in http://camel.apache.org/advicewith.html and i build one DSL for easy way tests MockEndpointSuport.java https://gist.github.com/bdmstyle/9669774 MyRouteTest https://gist.github

Re: bean members with parallel processing

2014-03-20 Thread Claus Ibsen
Not if the mapper is not thread safe, and when you have concurrent messages processed in that route. You can store the mapper on exchange as a property and grab it in step2 and 3 if you want to reuse the same mapper per exchange. Or create a new mapper per step and do not reuse it On Thu, Mar 20

sql component and delay

2014-03-20 Thread Lydie
Hello, I am trying to pull data from a database and mark rows as processed : This is working I am trying to use a specific delay in between each poll: ?consumer.onConsume={{sql.oracle.markPart}} ?consumer.delay=5000 How can I do both? I tried: It does not work. I also try to use direct: b

Re: sql component and delay

2014-03-20 Thread Matt Payne
Lydie -- I have a small learning project[1] around the sql component that uses an in memory Derby database. I noticed[2] that I needed to split things up like this: from("direct:processOrderRows") .to("sql:{{sqlstmt.selectOrder}}?dataSource=#dataSource&template.maxRows=10") .spli

RE: sql component and delay

2014-03-20 Thread Lydie
Thanks a lot Matt! I will look at your project. Lydie From: MattPayneOrg [via Camel] [mailto:ml-node+s465427n574916...@n5.nabble.com] Sent: Thursday, March 20, 2014 4:11 PM To: Lydie Prevost Subject: Re: sql component and delay Lydie -- I have a small learning project[1] around the sql componen

JMS Request/Reply but without setting JMSReplyTo header on outgoing message?

2014-03-20 Thread Andrew Thorburn
I've got a slightly awkward situation here. I've set up ServiceMix 4.5.3 with Camel 2.10.7, which is acting as a transformer and routing tool, and has the following flow: Receive message from CXF SOAP Web Service. Transform message Put message onto one of several WebSphere MQ Queues (using the MQ