AW: Translation of Camel manual

2013-04-29 Thread jhm
> I'm planning to translate Camel manual into Japanese, in order to > increase Camel users. > When I translate, do I need any permission of ASF or Camel members? Or > I can translate the manual freely and open to the public? I think the ASL allows that kind of use ;) The main "problem" is keeping

Re: User agent header on HTTP component

2013-04-29 Thread Claus Ibsen
Just set a header with the key user-agent and the value you want. On Tue, Apr 30, 2013 at 1:53 AM, fbarbat wrote: > Hi, > > How can I set user-agent header on http component? > > Thanks. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/User-agent-header-on-HTTP-com

Re: new camel predicate\expression language

2013-04-29 Thread Claus Ibsen
Hi Yeah sure you can write a custom language. Just look at camel-mvel, camel-ognl etc. In the XML DSL you can use the generic to refere to your custom language. foo bar stuff ... On Tue, Apr 30, 2013 at 3:03 AM, javamonkey79 wrote: > Is is possible to create custom predicate\expressio

Re: Camel with BeanFactory

2013-04-29 Thread Claus Ibsen
Hi What do you mean HAVE to use BeanFactory? Do you mean that camel-spring source code must not use ApplicationContext or any of the other Spring public APIs ? Well you can write you own camel module. Or just not use camel-spring at all, and just use camel-core which is Java code and has not depe

Camel with BeanFactory

2013-04-29 Thread kalyand
Hello, I understand by skimming over Camel's source code that it uses ApplicationContext everywhere. In a project that I'm working on, I HAVE to use BeanFactory only. Is it possible to initialize and use Camel's capabilities in a BeanFactory instead of ApplicationContext at all ? If so, what are

Camel with BeanFactory

2013-04-29 Thread Kalyan Dev
Hello, I understand by skimming over Camel's source code that it uses ApplicationContext everywhere. In a project that I'm working on, I HAVE to use BeanFactory only. Is it possible to initialize and use Camel's capabilities in a BeanFactory instead of ApplicationContext at all ? If so, what are

Translation of Camel manual

2013-04-29 Thread koseki nobuyuki
Hi, I'm planning to translate Camel manual into Japanese, in order to increase Camel users. When I translate, do I need any permission of ASF or Camel members? Or I can translate the manual freely and open to the public? regards, Koseki Nobuyuki -- View this message in context: http://came

new camel predicate\expression language

2013-04-29 Thread javamonkey79
Is is possible to create custom predicate\expression languages within camel? For example, I have something like this now: ${in.header.SEND_TO_FOLDER}

User agent header on HTTP component

2013-04-29 Thread fbarbat
Hi, How can I set user-agent header on http component? Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/User-agent-header-on-HTTP-component-tp5731761.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Aggregator not retaining data after leaving the Route

2013-04-29 Thread RTernier
I tried doing the following: The direct:foo does contain the correct XML. But when all these routes finish and finally start processing on the main route that called all of this, that route has the wrong XML. How do I get the AggregatedXML to be the actual Envelope for this process so the Root R

Aggregator not retaining data after leaving the Route

2013-04-29 Thread RTernier
I am successfully aggregating my XML into a single message, however once I leave the route that does the Aggregation it goes back to the original XML. I'm not sure why it reverts outside of the aggregate method... what is the best practice to keep that envelope? When the XML is "Not Correct" it tu

how to read a large amount of data in a 2nd step

2013-04-29 Thread Christian Jacob
Hi there, maybe I am running totally in the wrong direction because I'm a Camel rookie. But what I try to do is the following: I have database table of orders and a 2nd db table of order lines. A single order may have 10 order lines. Each order with all its order lines has to be stored in singl

Re: Read multiple files from a directory

2013-04-29 Thread Christian Müller
Your design sounds good for me. Sent from a mobile device Am 29.04.2013 12:43 schrieb "Jothi" : > Dear Camel Users, > > I would like to achieve the following: > > (1) Read 2 files from a directory at the same time > (2) Perform some processing on the content of both the files > (3) Create a new f

Re: Using ManagedServiceFactory to dynamically deploy routes

2013-04-29 Thread declancox
Hi Christian, Thanks for the reply. That particular issue was solved with an upgrade to 2.3.0 which includes Aries 1.x as you remark. It is a nice use of the ManagedServiceFactory mechanism for sure however it does require that I extend OsgiDefaultCamelContext, this is required for the OSGi contain

Re: How to create a generic SOAP consumer?

2013-04-29 Thread Christian Müller
Did you checked the camel-soap component? Sent from a mobile device Am 29.04.2013 16:36 schrieb "Smith-John" : > Hi, > > I need a generic SOAP consumer but don't know how to build it. > The consumer should be able to consume any kind of SOAP message and should > be able to pick out the body of it

How to create a generic SOAP consumer?

2013-04-29 Thread Smith-John
Hi, I need a generic SOAP consumer but don't know how to build it. The consumer should be able to consume any kind of SOAP message and should be able to pick out the body of it. I tried to realize it with cxf-component and MESSAGE format, but this way I can't handle headers. With PAYLOAD datafor

Re: Problems with sftp in Camel 2.11.0

2013-04-29 Thread Bengt Rodehav
Sorry, I just didn't have the time to test the RC's this time. However, I agree with David that having the RC's in central would be convenient. and might help making testing less of an effort. /Bengt 2013/4/29 David Karlsen > Probably if the RC's are available off central the testing/use of th

RouteDefinition.recipientList(...) post processing callback

2013-04-29 Thread FuzzKat Media
Hi I have a file route that sends a set of files (unix scripts) to many servers. This one to many is achieved via the RouteDefinition.recipientList(property(TO_FILE_COMPONENT_URI)) with the TO_FILE_COMPONENT_URI containing the array of to URIs (each pointing to the NAS location for the particular

Re: Problems with sftp in Camel 2.11.0

2013-04-29 Thread David Karlsen
Probably if the RC's are available off central the testing/use of them would increase. 2013/4/29 Claus Ibsen > Hi Bengt > > Thanks for the patches et. all. > > I just want to remind you and others listening that we did 4 RC rounds > of the 2.11.0 release, so it would be ideal if people had test

WireTap doesn't process the messages in the order they arrived for each message

2013-04-29 Thread Christian Mueller
The following test fails randomly fails at message 6 up to 961 (on my machine). I consider this as an bug: public class WireTapTest extends CamelSpringTestSupport { private int counter = 1; @Test public void test() throws InterruptedException { getMockEndpoint("mock:r

Re: Using ManagedServiceFactory to dynamically deploy routes

2013-04-29 Thread Christian Schneider
Hi Declan, I agree that the duplicate camel context is probably related to the aries bug. At a customer we had a similar requirement of running several instances of the same route with different parameters per instance. There I used a normal Java routebuilder but used java properties to parameteri

Re: AggregationStrategy and wrong sequence order

2013-04-29 Thread Sven Bauhan
Ok, new issue: https://issues.apache.org/jira/browse/CAMEL-6325 On 04/27/13 08:06, Claus Ibsen wrote: Hi Yeah that may be possible. Feel free to log a JIRA ticket. On Fri, Apr 26, 2013 at 6:33 PM, Sven Bauhan wrote: Ok, but then the timeout for the aggregation can occur, if the sender does

Re: Problems with sftp in Camel 2.11.0

2013-04-29 Thread Claus Ibsen
Hi Bengt Thanks for the patches et. all. I just want to remind you and others listening that we did 4 RC rounds of the 2.11.0 release, so it would be ideal if people had tested the RC's. Otherwise there is less points in us doing all the RC rounds if the community dont react and help test it. Aft

Re: convertBodyTo object array

2013-04-29 Thread Claus Ibsen
No You can create your own type converter or use a camel processor or java bean etc. On Sun, Apr 28, 2013 at 9:45 AM, Darwish wrote: > Hi , > any XML DSL workaround ? my version is 2.10.1 > > Thanks, > > > > > - > Othman Darwish > ProgressSoft Corp. > > -- > View this message in context: >

Re: Conditional route-scoped onException

2013-04-29 Thread Bernard Ligny
I aslo tried to rewrite the route as: java.lang.Exception ${headers.batch_size} > 1 true false

Conditional route-scoped onException

2013-04-29 Thread Bernard Ligny
I am trying to model the following logic for the error handling of one single specific route. 1. Post a (large) xml document 2. If the post failed, then split original xml into into n smaller documents, and repost them (step 1) individually. That kind of recursive process needs of course a stoppi

Read multiple files from a directory

2013-04-29 Thread Jothi
Dear Camel Users, I would like to achieve the following: (1) Read 2 files from a directory at the same time (2) Perform some processing on the content of both the files (3) Create a new file out of the processing from step 2 What I tired so far is to have a single route to read the files, send t

Re: File2: maxMessagesPerPoll combined with readLock=changed

2013-04-29 Thread hefiso
Hi OK, I see. Of course the fileconsumer may impose an order on consumation. However, it may very well happen that several files (in the right order) will become ready for consumation within the same readLockTimeout-period and these files *could* be processed in one go. However, it is probably no