Re: If camel-jetty/camel-http can dynamically load keystore/trustsore changes

2012-05-04 Thread Willem Jiang
Hi I'm afraid you have to restart the camel context to load the change. On Fri May 4 09:28:03 2012, yoleng wrote: Hi, One question for caml-jetty/camel-http: If camel-jetty/camel-http can dynamically load keystore/trustsore changes? I mean that when this component started, then the keystore

onCompletion not working when move file

2012-05-04 Thread agustino
Hi All, I am using Camel 2.9.2 and activeMQ 5.5. I face the problem file not found when move the original file to success folder when successfully processed.This is my scenario: read file from folder /input -> do transformation -> put the output to queue -> move the original file to /success folde

Re: onCompletion not working when move file

2012-05-04 Thread Claus Ibsen
On Fri, May 4, 2012 at 10:02 AM, agustino wrote: > Hi All, > > I am using Camel 2.9.2 and activeMQ 5.5. I face the problem file not found > when move the original file to success folder when successfully > processed.This is my scenario: > read file from folder /input -> do transformation -> put th

Re: Build error

2012-05-04 Thread Claus Ibsen
Hi The build instructions are here http://camel.apache.org/building.html For example run mvn clean install -Dtest=false And the PendingExchangesTwoRouteShutdownGracefulTest may pass on 2nd try etc. On Thu, May 3, 2012 at 9:44 PM, rodolfo wrote: > Hello > > I've downloaded Camel 2.9.2 source

Re: If camel-jetty/camel-http can dynamically load keystore/trustsore changes

2012-05-04 Thread yoleng
Hi, Thanks, @willem If I restart the context, then that means the business should be broken for the restart time. if there exist some way not to break the business? Regards. Leng Yong. -- View this message in context: http://camel.465427.n5.nabble.com/If-camel-jetty-camel-http-can-dynamically

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

2012-05-04 Thread Claus Ibsen
Hi Do you have mixed versions of Camel on the classpath? Make sure camel-jaxb and camel-core uses the same version. On Thu, May 3, 2012 at 8:17 PM, soumya_sd wrote: > @Claus - > > I added the e.printStackTrace() to BeanProcessor and got the following > exception in the logs. Also, I got a bunc

Re: Dynamic source endpoint

2012-05-04 Thread Claus Ibsen
You can add routes at runtime to a running Camel. If you using Java then you can have a RouteBuilder class as a template, and then maybe some getter/setter for the uris. And then reference those uris in the configure() method where you use the Java DSL. On Thu, May 3, 2012 at 9:53 AM, agustino

Re: onCompletion not working when move file

2012-05-04 Thread agustino
Hi Claus, Thanks for the reply. If I use move=successDir, it means that no matter it's success or fail, it will move the file to successDir. My expected result is, if the file is successfully processed to queue, then move to successDir else failDir. I tried to add onException(Exception.class).ha

Re: onCompletion not working when move file

2012-05-04 Thread Claus Ibsen
On Fri, May 4, 2012 at 11:06 AM, agustino wrote: > Hi Claus, > > Thanks for the reply. > > If I use move=successDir, it means that no matter it's success or fail, it > will move the file to successDir. > My expected result is, if the file is successfully processed to queue, then > move to successD

Re: Dynamic source endpoint

2012-05-04 Thread agustino
Hi Claus, Thanks for the reply. It really helpful. -- View this message in context: http://camel.465427.n5.nabble.com/Dynamic-source-endpoint-tp5682267p5685285.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Dynamic source endpoint

2012-05-04 Thread Marco Westermann
Hi, use can use pollEnrich to consume a file within a route. from(sql...) pollEnrich("file://") .to("activemq:myqueue"); look here: http://camel.apache.org/content-enricher.html Another way could be to call a bean which reads the file and return the content of the file from(sql

camel-jaxb namespace prefix

2012-05-04 Thread Thomas Johansen
Hi I'm using camel-jaxb to generate XML, and it works fine except that I get this unwanted namespace prefix "ns2": http://www.xxx.com/payments/0.0.1";> 4001 12345 2012-03-20T15:00:05 291 NOK 123456789012 65432 123 91

Re: Load balancer and InOut pattern

2012-05-04 Thread Claus Ibsen
Hi I am not sure exactly what you want. But multicast can send copies of the same message to multiple endpoints. Also you can use wire tap to copy and "spawn" the message. Take a look at these EIPs as well. On Thu, May 3, 2012 at 12:36 AM, Eugeniu wrote: > Hi > > Is it possible to use a load

Re: No hit during Multicast

2012-05-04 Thread Claus Ibsen
You can enrich the message if its been processed or not. And then you can check that header/headers if it was processed or not. The filter EIP sets a property on the exchange if it was filtered or not. http://camel.apache.org/message-filter On Thu, May 3, 2012 at 3:12 PM, kenhans wrote: > hell

Re: onCompletion not working when move file

2012-05-04 Thread agustino
Hi Claus, It means, I shouldn't use handled(true), should I? Thanks -- View this message in context: http://camel.465427.n5.nabble.com/onCompletion-not-working-when-move-file-tp5685102p5685462.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: onCompletion not working when move file

2012-05-04 Thread Claus Ibsen
On Fri, May 4, 2012 at 12:39 PM, agustino wrote: > Hi Claus, > > It means, I shouldn't use handled(true), should I? > No dont use that. moveFailed will move the files if failing. > > Thanks > > -- > View this message in context: > http://camel.465427.n5.nabble.com/onCompletion-not-working-when-

Multiple consumers for the same endpoint is not allowed

2012-05-04 Thread atg roxx
Hi Team, I am getting follwoing error: Exception in thread "main" org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToStartRouteException: Failed to start route route69 because of Multiple consumers for the same endpoint is not allowed: Endpoint[jms://com.test.request?concurrentCons

Re: Multiple consumers for the same endpoint is not allowed

2012-05-04 Thread atg roxx
Hi Team, Sorry, there was a mistake from my end. I have another route listening on the same queue :) --Regards, atg roxx On Fri, May 4, 2012 at 12:10 PM, atg roxx wrote: > Hi Team, > > I am getting follwoing error: > > > Exception in thread "main" org.apache.camel.RuntimeCamelException:

Component file: move and moveFailed

2012-05-04 Thread Hilde
Dear Listener! I have a route that starts with a file consumer that has the options 'move' and 'moveFailed' configured. After the file component has given away the file to the subsequent process an exception is thrown that will be handled via the exception policy (onException with handled=false)

Re: Component file: move and moveFailed

2012-05-04 Thread Hilde
I have forgotten to notice that the file component acts as expected as soon as I remove the exception policy (onException). However we need that for writing an protocol. -- View this message in context: http://camel.465427.n5.nabble.com/Component-file-move-and-moveFailed-tp5685631p5685713.html S

Re: How to Get Camel Message Size

2012-05-04 Thread Claus Ibsen
On Fri, May 4, 2012 at 2:23 PM, aggarwal.sachit wrote: > Hi > > I have  "org.apache.camel.Message" message object , which is the best way to > read size of message content passed ? > You mean the message body? Well Camel can route any kind of data so there is nu one shot solution for "size". >

Re: If camel-jetty/camel-http can dynamically load keystore/trustsore changes

2012-05-04 Thread ychawla
Hi Leng, The keystore/truststore updates should be infrequent, right? Do you have a production environment with load balancing/failover? If so, you can take one server out of commission and perform maintenance and then update the other server. Otherwise, you probably have to do it in a maintenan

Re: AW: JAXB classpath issue with camel-jaxb 2.9.2

2012-05-04 Thread gehdan
gah.. damn HTML mails... sorry for that, I'm trying again: my route looks like this: VeytonProxy proxy = new VeytonProxy( new URL("http://shop.example.com/index.php?page=soap_api_wsdl";)); JaxbDataFormat d = new JaxbDataFormat(); d.setDataFormatName("jaxb"); d.setContextPath("com.xt_commerce.typ

Re: Component file: move and moveFailed

2012-05-04 Thread Claus Ibsen
On Fri, May 4, 2012 at 2:25 PM, Hilde wrote: > I have forgotten to notice that the file component acts as expected as soon > as I > remove the exception policy (onException). However we need that for writing > an protocol. > Yeah I can see this is a possible mistake, as your onException don't han

Re: File Processor Not deleting the files

2012-05-04 Thread rdifrango
Has this been baked into a snapshot release that is available or source build only? -- View this message in context: http://camel.465427.n5.nabble.com/File-Processor-Not-deleting-the-files-tp5670301p5686206.html Sent from the Camel - Users mailing list archive at Nabble.com.

How to bind an object in the registry camel?

2012-05-04 Thread sekaijin
Hi I use blueprint for my camel osgi bundles. I don't understand how to register a dataformat or a codec in the registry camel My xml is as follows and in my road builder I can not see my dataformat (I.E. my codec) if I understand well http://camel.465427.n5.nabble.com/How-to-bind-an-object-i

Delay route start

2012-05-04 Thread PhilBurress
Is there a way to run with autoStartup enabled but have the route wait for a specified period of time before starting to consume messages? -- View this message in context: http://camel.465427.n5.nabble.com/Delay-route-start-tp5686442.html Sent from the Camel - Users mailing list archive at Nabble

Re: Build error

2012-05-04 Thread rodolfo
Hi Claus I already tried to build without running tests. Claus Ibsen-2 wrote > > And the PendingExchangesTwoRouteShutdownGracefulTest may pass on 2nd try > etc. > I tried it several times on the same machine I'm able to build my own projects (including one using camel) and also some others o

Re: camel-jaxb namespace prefix

2012-05-04 Thread ychawla
Hi Thomas, You can use JaxB NameSpacePrefixMapper to customize what the namespaces look like. Basically it would take ns2 and set it to something more intuitive of your choosing. See here for details: http://stackoverflow.com/questions/1982977/is-it-possible-to-customize-the-namespace-prefix-tha

Re: Dynamic source endpoint

2012-05-04 Thread ychawla
Hi, I would look into using a routing slip here as well. Depending on how dynamic your endpoints are you can poll the database using a timer, retrieve your endpoints, havw a bean processor that creates a routing slip header, and then send the exchange to the routing slip. This could work if you k

Re: Delay route start

2012-05-04 Thread Raul Kripalani
Hi, Yes. You should look into defining a SimpleScheduledRoutePolicy on your route. See [1], although the default values and meanings of each attribute seem to be a bit clearer here [2]. You should set the routeStartDate attribute to current time + delay you require, and keep the repeatCount and i

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

2012-05-04 Thread soumya_sd
Claus Ibsen-2 wrote > > Hi > > Do you have mixed versions of Camel on the classpath? > Make sure camel-jaxb and camel-core uses the same version. > You were correct. I added the following exclusion to my pom.xml and it worked. org.drools

Re: Delay route start

2012-05-04 Thread PhilBurress
Fantastic. Much appreciated. -- View this message in context: http://camel.465427.n5.nabble.com/Delay-route-start-tp5686442p5686646.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to bind an object in the registry camel?

2012-05-04 Thread Jon Anstey
I use camel-bindy in a Blueprint file here: https://github.com/janstey/rider-auto-osgi/blob/master/rider-auto-normalizer/src/main/resources/OSGI-INF/blueprint/camel-context.xmlMaybe that will help. You don't to explicitly add that to the registry. Of course, for camel-bindy to be available to the

Re: Build error

2012-05-04 Thread Babak Vahdat
Hi looking at your maven [ERROR] message, the problem you have is because of camel-msv and your usage of Maven 3.0.4. So either: - Make use of Maven 3.0.3 or less - Do fix the camel-msv's pom.xml the same as by the following revision http://camel.465427.n5.nabble.com/svn-commit-r1300914-in-camel-

Re: Help with RUNNING simple camel example with spring dsl without using maven

2012-05-04 Thread Jon Anstey
You can generate your own Spring-based project with the camel-archetype-spring archetype: mvn archetype:generate -DarchetypeGroupId=orache.camel.archetypes -DarchetypeArtifactId=camel-archetype-spring -DarchetypeVersion=2.9.2 -DgroupId=myGroupId -DartifactId=myArtifactId You can run that with "mv

maven camel-mongodb not found

2012-05-04 Thread don2clouds
I am trying to add camel-mongodb to a route and when I used the following dependency I get a not found error in eclipse. 2.9.2 org.apache.camel camel-mongodb ${apache.camel-version} Any

Re: maven camel-mongodb not found

2012-05-04 Thread don2clouds
Never mind version check was not done by me -- View this message in context: http://camel.465427.n5.nabble.com/maven-camel-mongodb-not-found-tp5687223p5687236.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Component file: move and moveFailed

2012-05-04 Thread Claus Ibsen
Hi Can you post your full route, and the code you do in the onException. It ought to work out of the box, so I wonder what's the issue you see. On Fri, May 4, 2012 at 2:25 PM, Hilde wrote: > I have forgotten to notice that the file component acts as expected as soon > as I > remove the exceptio

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

2012-05-04 Thread Claus Ibsen
On Fri, May 4, 2012 at 8:21 PM, soumya_sd wrote: > > Claus Ibsen-2 wrote >> >> Hi >> >> Do you have mixed versions of Camel on the classpath? >> Make sure camel-jaxb and camel-core uses the same version. >> > > > You were correct. I added the following exclusion to my pom.xml and it > worked. > >

Re: File Processor Not deleting the files

2012-05-04 Thread Claus Ibsen
On Fri, May 4, 2012 at 5:23 PM, rdifrango wrote: > Has this been baked into a snapshot release that is available or source build > only? > Yeah its in the trunk and 2.9 branches. http://camel.apache.org/source.html The 2.10 SNAPSHOT can be downloaded http://camel.apache.org/download.html Or you