Re: Camel 2.12.2 crashes on activemq restart

2014-01-29 Thread Willem Jiang
This warning messages are expected.  Does the camel route work again when the ActiveMQ server  is back online ? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http://jnn.javaeye.com

import to fuse ide

2014-01-29 Thread gadido30
Hi All I have found some sample project for camel and xmpp , is it possible to import it into fuse ide? http://code.google.com/p/camel-xmpp-server/ Thank You Gadi -- View this message in context: http://camel.465427.n5.nabble.com/import-to-fuse-ide-tp5746584.html Sent from the Camel - Users

Re: import to fuse ide

2014-01-29 Thread Claus Ibsen
Hi Yeah Fuse IDE is *just* Eclipse. So you can import any kind of Java / Maven project etc. File -> Import ... -> Existing Maven Project -> find that project dir -> and click the rest of the wizard to import it. On Wed, Jan 29, 2014 at 9:00 AM, gadido30 wrote: > Hi All > > I have found some sam

Re: Camel 2.12.2 crashes on activemq restart

2014-01-29 Thread Rural Hunter
Of coz I can. The error occurred during activemq restarting and then camel crashed. After activemq is restarted, I had to restart my camel application since it crashed during the activemq restarting. 于 2014/1/29 15:57, Charles Moulliard 写道: The problem is not related to Camel. Can you make a J

Re: camel-cxf , return complex type object problem

2014-01-29 Thread Willem Jiang
Hi, I just did a simple test, setting the result into an Object Array works as expect. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese) Twitter: w

Re: Camel 2.12.2 crashes on activemq restart

2014-01-29 Thread Rural Hunter
No, as I said, camel crashed with that error. I had to restart camel. 于 2014/1/29 16:00, Willem Jiang 写道: This warning messages are expected. Does the camel route work again when the ActiveMQ server is back online ? --

Re: Camel swallows Error

2014-01-29 Thread Rural Hunter
I don't have the log any more. And I think I described the problem clearly. What do you need the log for? 于 2014/1/29 15:54, Charles Moulliard 写道: Can you create a gist link with the full stack trace please ? Otherwise we cannot help you

Re: Camel swallows Error

2014-01-29 Thread Claus Ibsen
Did some unit tests which cannot reproduce the issue you see. https://github.com/apache/camel/commit/8cd86620d09f9641f4d29c5a131f162fd48ec547 On Wed, Jan 29, 2014 at 8:21 AM, Rural Hunter wrote: > I didn't keep the log but it's a normal NoClassDefFoundError with clear > stack trace. It indicated

Re: Camel 2.12 : MongoDB - pre-existing indexes being dropped when using "dynamicity"

2014-01-29 Thread mads64738
Willem.Jiang wrote > Hi, > > You can find more information about the change in this JIRA[1] > [1]https://issues.apache.org/jira/browse/CAMEL-6000 Hi Willem, Many thanks for your reply. I've reviewed the ticket and sort-of understand the intent of the change. However, it doesn't make sense to

Re: Camel swallows Error

2014-01-29 Thread Rural Hunter
Yes, your test case is working. I will try to find the difference with my case. 于 2014/1/29 17:01, Claus Ibsen 写道: Did some unit tests which cannot reproduce the issue you see. https://github.com/apache/camel/commit/8cd86620d09f9641f4d29c5a131f162fd48ec547

Re: Pros and cons of using choice as opposed to having separate endpoints

2014-01-29 Thread Shing Hing Man
Thanks for all the comments and suggestions ! For my case, I will stick with the  multi routes option, as it is easier to maintain. Shing On Tuesday, January 28, 2014 6:55 PM, Claus Ibsen wrote: Hi You can also use "dynamic to" with the recipient list like the CXF tomcat example http:

Re: camel-cxf , return complex type object problem

2014-01-29 Thread nono
Hi Willem, sorry. i tried again. does not work for me could you please post your workable sample test here? Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-return-complex-type-object-problem-tp5746478p5746595.html Sent from the Camel - Users mailing list

RE: Convert a Spring xml route string in a RouteDefinition

2014-01-29 Thread giacomolm
Hi all, maybe i found the problem. I'm using Java 1.6 and by default the JVM uses jaxb libraries older than 2.2.7: in this way i get the problem discussed above. If i switch JVM, using 1.7, the JVM downloads automatically 2.2.7 jaxb library: in this way the route definition works properly. So th

Running camel Route in multiple threads

2014-01-29 Thread Tarun Kumar
Hi, I want to run my camel route in multiple threads. Is there any way i can run same route in multiple threads. basically same route execute parallely in multiple threads. Thanks, Tarun

Re: Starting a route after another completes

2014-01-29 Thread mister blinky
I would like to bump this question. It seems like a common scenario that should be handled in a simpler (to the developer) way. Here's my scenario: 1) FTP the contents of a directory to a remote server 2) When the FTP is complete, do something with the files ... So this is the route for (1) from(

Re: Permission denied with Camel-FTP when configuring jail+chroot+sftp only with openssh

2014-01-29 Thread bocamel
lleclerc, Did you find the answer to this issue? I am having a similar issue. In my case, this "permission denied" error occurs intermittently when I send files to a SFTP server using Camel. After each occurrence of the error, JSCH would disconnect and reconnect to the SFTP server. Since I con

Re: Starting a route after another completes

2014-01-29 Thread Claus Ibsen
Hi This has been discussed before on these forums. Look for on completion onWhen the batch is complete. http://camel.apache.org/oncompletion.html http://camel.apache.org/batch-consumer.html On Wed, Jan 29, 2014 at 4:03 PM, mister blinky wrote: > I would like to bump this question. It seems like

Re: Starting a route after another completes

2014-01-29 Thread mister blinky
thanks. Although i've been over and over the onCompletion and Batch Consumer doc pages, your prompting at least made me realize i was looking in the right place! So for others who may have this issue, here's the solution. Basically you test in onCompletion for when the batch is complete. Nice and

Re: Running camel Route in multiple threads

2014-01-29 Thread Willem Jiang
Basically when you start the camel route, camel will build up a processor chain to process the message, this processor chain is invoked from the “from” endpoint. As the camel timer component cannot fire the invocation in multiple threads at the same time, you need to take advantage of camel asyn

Re: camel-cxf , return complex type object problem

2014-01-29 Thread Willem Jiang
Hi nono, I just ran a test with a simple echo invocation.                         // Get the parameter list                         List parameter = in.getBody(List.class);                         // Get the operation name                         String operation = (String)in.getHeader(CxfConstan

Re: Apache camel guaranteed delivery - multiple endpoints

2014-01-29 Thread boday
might take a look at the idempotent consumer pattern to filter duplicates...it can be used with a repository (hazelcast, file, etc) to survive servers restarts, etc http://camel.apache.org/idempotent-consumer.html MichaelAtSAG wrote > All, > > Please provide best practices on supporting guarant

File Exists

2014-01-29 Thread JKemp
Hey guys, I'm trying to write a Camel route that will only kick off once two files are present on the server, but I can't seem to figure out an easy way to do this. I was hoping there'd be a Simple command for this or some feature in the File component, but I haven't found anything that looks pro

Re: Camel 2.12 : MongoDB - pre-existing indexes being dropped when using "dynamicity"

2014-01-29 Thread Willem Jiang
Hi, If you don’t know the collection, can you just skip the setting of collection? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese) Twitter: willem

Re: File Exists

2014-01-29 Thread Richard Kettelerij
Hi Jakob, Perhaps you can do a poll using an generic filename filter that matches both files and combine this with an aggregator ( http://camel.apache.org/aggregator2.html)? So you have the aggregator wait until both files are polled, this can probably be done by using a completionPredicate on the