Re: example using HazelcastIdempotentRepository in Spring DSL

2013-02-28 Thread Claus Ibsen
Hi I suggest to check some unit test of the camel-hazelcast, to see some examples of this idempotent in use https://svn.apache.org/repos/asf/camel/trunk/components/camel-hazelcast/ And I guess the Camel docs could be updated a bit with an example for Spring XML as well. As the sample we have is J

Re: Large file processing with Apache Camel

2013-02-28 Thread Christian Müller
You have to make sure your processor is thread safe, because it is shared between all parallel executed threads. Best, Christian On Thu, Feb 28, 2013 at 1:03 PM, cristisor wrote: > After digging more into my problem I found that the slow db access was the > main issue, maybe you heard before of

example using HazelcastIdempotentRepository in Spring DSL

2013-02-28 Thread davebarker
Hello all, I'm trying to figure out how to use the HazelcastIdempotentRepository as the idempotentConsumer for a duplicate filter in a Spring DSL route. example: ... PrimaryValue . throws the following error: "No default constructor found; nested exception is java.lan

AggregationStrategy not writing to end result

2013-02-28 Thread Gvvenkat
Hi, I am using an aggregator to add ";" inbetween the message that is tokenized by "\n". But the end result does not show ';' at the end every line.. what am I doing wrong.. Here is route config...

Re: prepared statements in camel-jdbc?

2013-02-28 Thread Claus Ibsen
On Fri, Mar 1, 2013 at 5:24 AM, kavan desai wrote: > I am seeing this post is quite old hence want to reassure, Does Camel JDBC > support Prepeared statements? > Check the source code https://svn.apache.org/repos/asf/camel/trunk/components/camel-jdbc/ > > > -- > View this message in context: >

Re: prepared statements in camel-jdbc?

2013-02-28 Thread kavan desai
I am seeing this post is quite old hence want to reassure, Does Camel JDBC support Prepeared statements? -- View this message in context: http://camel.465427.n5.nabble.com/prepared-statements-in-camel-jdbc-tp3319106p5728328.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Issue Replacing a component with Mock in Camel Context

2013-02-28 Thread Christian Müller
First of all, you should use from("direct:eventMessageList").routeId("PseudoEventQueue") instead of from("direct:eventMessageList").id("PseudoEventQueue") And in your test method, you can do context.getRouteDefinition("PseudoEventQueue").adviceWith(context, new RouteBuilder() {

Re: cxf response

2013-02-28 Thread Christian Müller
Could you have a look at [1]. May be it will help. This is a working example... However, you should be able to simplify your route: from("cxf:cxfEndpoint?wsdlURL=foo&dataFormat=POJO") .process(myProcessor) .to("bean:myBean"); Is your object "example.ExampleResponse" generated by the CXF m

Re: Is there anyway to configure the JPA component to get it's query (or query parameters) from an inbound message?

2013-02-28 Thread Christian Müller
Just send the details here if somebody is looking for the same in some month... Thanks in advance, Christian On Wed, Feb 27, 2013 at 6:23 PM, Chris Wolf wrote: > I figured out how to do it. If anyone is interested, I can supply details. > > On Wed, Feb 27, 2013 at 10:54 AM, Chris Wolf wrote:

Re: camel processor in InOut to send 2 replies

2013-02-28 Thread Christian Müller
Will the following work for you (using Java DSL)? from("jms:queue:data") .setHeader("id", constant("1")) .multicast() .inOnly("jms:queue:first", "jms:queue:second"); from("jms:queue:first") .to("bean:myMessageProcessor") .to("jms:queue:finished"); from("jms:queue:second") .to("bean

Prolems with parametrized bean method call via simple

2013-02-28 Thread garrydias
Hi friends I´m facing a strange behavior when performing this XML DSL statement. When I call /validateFiringUnitSchedule /method passing its 2 parameters, the second argument has its value splited just because it contains ",". For example, when ${in.body.cronExpression} is "0 0 10,11,12 * * ?" its

Re: Problem polling UNIX FTP server

2013-02-28 Thread GarethHughes
Hi Claus, Thank you for your advice. I installed 2.10.2 and it works...as you said it would. -- View this message in context: http://camel.465427.n5.nabble.com/Problem-polling-UNIX-FTP-server-tp5728242p5728307.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Has anyone ever successfully deployed the Camel Web Console on JBoss-6?

2013-02-28 Thread Chris Wolf
I got past the issue of JBoss croaking on Scala by the workaround mentioned here: http://www.mastertheboss.com/infinispan/infinispan-restful-interface Now, the error is: 11:56:19,087 SEVERE The ResourceConfig instance does not contain any root resource classes. [com.sun.jersey.server.impl.applicat

RE: [Spam]: Re: Is there batch functionality in Camel?

2013-02-28 Thread Vasilev, Ivan
Thanks Henryk and Maruan! It really helped. Best Regards, Ivan -Original Message- From: Henryk Konsek [mailto:hekon...@gmail.com] Sent: Wednesday, February 27, 2013 10:27 PM To: users@camel.apache.org Subject: [Spam]: Re: Is there batch functionality in Camel? Hi Ivan, > I wonder if t

Re: Endpoint configuration error

2013-02-28 Thread Claus Ibsen
On Thu, Feb 28, 2013 at 9:53 AM, Richa wrote: > Thank you for your reply claus. > I am using camel 2.10.2. > It's a normal java function. The function returns the JmsEndpoint which I > later use in my route. But even though I put try catch block, I get this > exception thrown out. Apparently the c

RE: Camel smpp special characters for sending sms

2013-02-28 Thread fclose
Hello, I found the solution to my problem and I wanted to update you about it. On the initial tests I did I was setting the dataCoding / alphabet (= 8 UCS2) as URI options. This didn't work. If I set the alphabet to UCS2 as a Producer Message Header and encoding = UTF-16BE as URI options then

camel and several implementations of an interface

2013-02-28 Thread Smith-John
Having a bundle with an interface and several implementations of it (all in their own bundle), how can I decide which bundle to call? Details: Bundle 1 just defines an interface. (packageName.InterfaceName) Bundle 2, 3 & 4 implement this interface. Problem is, with .to("bean:packageName.Interf

Re: JMS Dead Letter channel discards JMS custom headers

2013-02-28 Thread Claus Ibsen
On Thu, Feb 28, 2013 at 2:37 PM, cgsk wrote: > Thanks for the reply. I am using 2.8.2 version. > Yes you need Camel 2.10 or better. > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/JMS-Dead-Letter-channel-discards-JMS-custom-headers-tp5728293p5728296.html > Sent fro

Re: JMS Dead Letter channel discards JMS custom headers

2013-02-28 Thread Claus Ibsen
On Thu, Feb 28, 2013 at 1:23 PM, cgsk wrote: > Hi There, > > I am using errorHandler with DeadLetterchannel configured with > useOriginalMessage,maximumRedeliveries and redeliveryDelay. Everything works > fine. But when I get the actual message in the dead letter queue in case of > failures, the J

Re: Large file processing with Apache Camel

2013-02-28 Thread Claus Ibsen
On Thu, Feb 28, 2013 at 1:03 PM, cristisor wrote: > After digging more into my problem I found that the slow db access was the > main issue, maybe you heard before of setting > sendStringParametersAsUnicode=false in the jdbc driver to dramatically > increase the performance. > > Since the last tim

JMS Dead Letter channel discards JMS custom headers

2013-02-28 Thread cgsk
Hi There, I am using errorHandler with DeadLetterchannel configured with useOriginalMessage,maximumRedeliveries and redeliveryDelay. Everything works fine. But when I get the actual message in the dead letter queue in case of failures, the JMS headers are getting discarded, even the JMSCorrelation

Re: Large file processing with Apache Camel

2013-02-28 Thread cristisor
After digging more into my problem I found that the slow db access was the main issue, maybe you heard before of setting sendStringParametersAsUnicode=false in the jdbc driver to dramatically increase the performance. Since the last time I posted here I learned a lot about apache camel and I imple

Re: Endpoint configuration error

2013-02-28 Thread Richa
Thank you for your reply claus. I am using camel 2.10.2. It's a normal java function. The function returns the JmsEndpoint which I later use in my route. But even though I put try catch block, I get this exception thrown out. Apparently the code does not go to the catch block. Currently my catch b

SFTP authentication issue

2013-02-28 Thread Richa
Hi, I am trying to connect to an SFTP endpoint. The JSCH class uses the following parameters for authentication: ("PreferredAuthentications", "gssapi-with-mic,publickey,keyboard-interactive,password") If I use the custom JSCH class then I am not able to connect to my SFTP endpoint because of the g

Re: camel-blueprint-test issues

2013-02-28 Thread Claus Ibsen
Hi Well spotted. I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-6111 On Thu, Feb 28, 2013 at 5:32 AM, Ryan Moquin wrote: > I converted a test that was using the camel-test library to the > camel-test-blueprint library and it appears that the route runs at least > twice, but a

Re: Endpoint configuration error

2013-02-28 Thread Claus Ibsen
On Thu, Feb 28, 2013 at 7:19 AM, Richa wrote: > Hi, > I am creating a JmsEndpoint for my route. The problem is that when the JMS > is down, the following line: > JmsEndpoint > endpoint=(JmsEndpoint)getContext().getEndpoint("activemq:topic:jms.topicName" > is throwing exception. > I have put this l

Re: Problem polling UNIX FTP server

2013-02-28 Thread Claus Ibsen
Hi There is a known issue in Camel 2.10.3 with the sftp component. Use 2.10.2 or the new 2.10.4. On Wed, Feb 27, 2013 at 7:34 PM, GarethHughes wrote: > Hi, > > I'm new to Camel so I may have missed something obvious. > > I am using Camel 2.10.3, running on Windows 2003 server and Java 1.6. > >

Re: Problem with donefilename on sftp.

2013-02-28 Thread Claus Ibsen
On Thu, Feb 28, 2013 at 8:47 AM, seazor wrote: > I continued some others tests... > > All this work correctly with file:, with ftp: but not with sftp: > > If someone can check and/or help me (workaround? bug report? other?) , it > would be very appreciated. > There is a known issue in Camel 2.10.

Re: Problem with donefilename on sftp.

2013-02-28 Thread seazor
I continued some others tests... All this work correctly with file:, with ftp: but not with sftp: If someone can check and/or help me (workaround? bug report? other?) , it would be very appreciated. -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-donefilename-o