Re: how to hide user and password in sftp in for statement

2012-07-10 Thread Claus Ibsen
On Tue, Jul 10, 2012 at 6:06 PM, David Capwell wrote: > Ill try to setup jasypt to hide the password. > > Is there a way to paramiterize the from URI? I can see strings getting > longer and longer with only slight differences, so would be good to reuse. > When I was doing some digging I saw a wa

Re: completionFromBatchConsumer() and empty messages

2012-07-10 Thread Claus Ibsen
Hi No you would need to filter the message so the empty message wont get aggregated. But I guess since this is a new option on the batch consumers we should take that into account in the aggregate EIP. Do you mind log a JIRA ticket about this? On Wed, Jul 11, 2012 at 3:43 AM, Gordienko, Max wr

Re: Camel - BeanIO integration

2012-07-10 Thread Willem Jiang
Hi, You doesn't show us you full story. I think you should past the code of ProcessDeduction and MyAggregationStrategy. BTW, I don't think you have a right split expression. Can you double check it ? On 7/10/12 7:34 AM, arep...@hotmail.com wrote: It is good to know that Camel 2.10 has integr

Re: initialize camelContext properties

2012-07-10 Thread Willem Jiang
Yes, current camel property component doesn't support resolve the property value dynamically. Do you mind to create a JIRA for it, I will work on this issue later this week. On Wed Jul 11 05:25:40 2012, alexey-s wrote: I propose to replace the current structure getCamelContext (). getProprties

Re: camel cxfrs : setting a cookie in the http response

2012-07-10 Thread Willem Jiang
Hi, You should get the parameter from the message body as a List. In this way you could access the cookie as Sergey shows to you. On Wed Jul 11 01:23:13 2012, javakurious wrote: Sergey Beryozkin-3 wrote The simplest option is to do something like @GET @Path("/getCustomer")

completionFromBatchConsumer() and empty messages

2012-07-10 Thread Gordienko, Max
Hi all, I am using a file consumer in the batch mode to consume all the files in a directory. I aggregate them all together using aggregate(constant(true), new MyAggregationStrategy()).completionFromBatchConsumer() And it works just fine. Now I need to be notified if there is nothing to consume

Re: Camel - BeanIO integration

2012-07-10 Thread Christian Müller
Did you already checked out the unit tests at [1]? [1] https://svn.apache.org/repos/asf/camel/trunk/components/camel-beanio/src/test/java/org/apache/camel/dataformat/beanio/ Best, Christian On Tue, Jul 10, 2012 at 1:34 AM, arep...@hotmail.com wrote: > It is good to know that Camel 2.10 has inte

Re: Suspending/resuming routes via a policy not reflected in JMX

2012-07-10 Thread mattg
I've created https://issues.apache.org/jira/browse/CAMEL-5435 CAMEL-5435 for the issue. -- View this message in context: http://camel.465427.n5.nabble.com/Suspending-resuming-routes-via-a-policy-not-reflected-in-JMX-tp5715701p5715823.html Sent from the Camel - Users mailing list archive at Nabb

Re: initialize camelContext properties

2012-07-10 Thread alexey-s
I propose to replace the current structure getCamelContext (). getProprties (). get("my_property") to the new method getCamelContext (). getProperty("my_property") The implementation of this method will produce an automatic substitution values ​​using property placeholders. String getProperty (St

Re: Using Camel with JDBCTemplate for Clob

2012-07-10 Thread Christian Müller
-J, as you may know Camel starts supporting Spring 3.1 starting with version 2.10.0... In [1] you can find some information how to use the Spring JDBCTemplate. In [2] and [3] you can find an example how to use a Spring Stored Procedure in a Camel route. Hope this helps... [1] http://static.sprin

Re: camel cxfrs : setting a cookie in the http response

2012-07-10 Thread javakurious
Sergey Beryozkin-3 wrote > > > The simplest option is to do something like > > @GET >@Path("/getCustomer") >@Produces("text/xml") >public Response getCustomer( >@PathParam("name") String street, >@CookieParam("a") String aCookie) { >

Re: RecipientList with bean method to set HTTP endpoint string

2012-07-10 Thread rhowlett
Using the @RecipientList annotation worked. The new component receives the exchange that was modified by the bean method. Thanks Claus. On Tue, Jul 10, 2012 at 12:33 AM, Claus Ibsen-2 [via Camel] < ml-node+s465427n5715793...@n5.nabble.com> wrote: > Hi > > There is a @RecipientList annotation you

Re: how to hide user and password in sftp in for statement

2012-07-10 Thread David Capwell
Ill try to setup jasypt to hide the password. Is there a way to paramiterize the from URI? I can see strings getting longer and longer with only slight differences, so would be good to reuse. When I was doing some digging I saw a way in spring to have the from reference a bean, but in a non spri

Re: Can we configure Tomcat as we configure ActiveMQ in camel

2012-07-10 Thread Henryk Konsek
> can i configure Tomcat in Camel like this.We always pointing Tomcat. Tomcat > running or not using camel.How to test it using camel. I'm personally getting StackOverflowException when reading this :) Would you be so kind and be a little more specific regarding what you want to ask us? -- Henry

Re: FTP performance with hundreds of concurrent routes.

2012-07-10 Thread domenec
Thanks for the tips, Claus. -- View this message in context: http://camel.465427.n5.nabble.com/FTP-performance-with-hundreds-of-concurrent-routes-tp5697247p5715812.html Sent from the Camel - Users mailing list archive at Nabble.com.

Using Camel with JDBCTemplate for Clob

2012-07-10 Thread dunnlow
Hi, I am using Camel 2.9 and Spring 3.1 I have been using the jdbc component to perform (transacted) inserts into my database. It has been working well. However, there is a new test object in the message that needs to be inserted into a Clob. There isn't much information about using camel to in

Re: camel cxfrs : setting a cookie in the http response

2012-07-10 Thread Sergey Beryozkin
Hi On 10/07/12 13:55, javakurious wrote: Hi Sergey, Thanks for the reploy. My apologies if the question was posted in incorrect forum. But, I was using Camel - CXF to implement the REST service, so I thought this would be an appropriate forum. I am new to Camel and CXF, therefore I might be litt

Re: camel cxfrs : setting a cookie in the http response

2012-07-10 Thread javakurious
Hi Sergey, Thanks for the reploy. My apologies if the question was posted in incorrect forum. But, I was using Camel - CXF to implement the REST service, so I thought this would be an appropriate forum. I am new to Camel and CXF, therefore I might be little unclear on the question, itself. Here

Can we configure Tomcat as we configure ActiveMQ in camel

2012-07-10 Thread syam
Hi We have Camel application.In this application activemq configured like this. from("activemq:queue:mediation-mq(queue name)?transferException=true&exceptionListener=#jmsExceptionListener") .routeId(ERouteNames.ROUTE_TUBE.name())

Updating status when FTP connection fails

2012-07-10 Thread Nafees
Hi I have a FTP component and we have a class OptimerPollStrategy which implements PollingConsumerPollStrategy, in rollback() method, I am stopping the consumer as consumer.stop. Also, i want to know the details of the Route for which this exception had raised. I want to update to some database ta

Re: camel cxfrs : setting a cookie in the http response

2012-07-10 Thread Sergey Beryozkin
Hi On 10/07/12 03:14, javakurious wrote: I have a cxfrs component which is handling http requests. My simple question is how do I set a cookie in the response, so that it is sent back to me with subsequent requests from the same client ? Another question on related topic is, how can I access the

Re: Jms component discarding transformations

2012-07-10 Thread SimonH
Okay, thanks for the workaround suggestion, Claus. I'll give it a go (from what I've seen in the code, I'm sure this would work). The other workaround I have is to use 'beanRef' instead of 'processRef' which seems to offer everything that processRef does and more, although is implemented in a dif