Re: Adding Routes at the runtime-cannot add multiple consumer to the same endpoint

2014-02-06 Thread Claus Ibsen
When you add the 2nd route, 3rd route etc, then use a unique name, eg test2, test3 etc. The direct component only allow one active consumer. On Fri, Feb 7, 2014 at 8:17 AM, trilochan237 wrote: > Hi, > We have a requirement where in we have to add the routes at the runtime to > camel-context whic

RE: File Exists

2014-02-06 Thread JKemp
I feel like I'm still missing something here. I don't see anything in the GenericFile that is passed in that represents a listing of the file names that the batch polling picked up. http://camel.apache.org/maven/camel-2.12.0/camel-core/apidocs/org/apache/camel/component/file/GenericFile.html

Adding Routes at the runtime-cannot add multiple consumer to the same endpoint

2014-02-06 Thread trilochan237
Hi, We have a requirement where in we have to add the routes at the runtime to camel-context which is already running. The following piece of code works for the first time, but when i execute it for the second time it causing mulitple consumer error. code: public void addroutestocontext(CamelCont

Camel Vert.x problems

2014-02-06 Thread jonheg
Hi! Im trying to do some initial testing of the new Vert.x component but having some issues. Firstly, in default configuration, the Vert.x component is using port 5701 which is the same as Hazelcast (which is embedded in Vert.x component) and results in a port conflict on startup in the default s

Duplicate JMS messages are getting piled up with redelivery of messages

2014-02-06 Thread praveenbillampati
Hi All, We have a camel route processing requests came on to a queue and that queue is having concurrent consumers. Route is configured to redeliver the message for 3 times when there is an exception. We observed that the same message is getting submitted multiple times and there is an increase

Fileconsumer failes to rename file in windows drive root directory

2014-02-06 Thread Robin.Lutter
Hi Claus, we have a route with consuming files form a mapped windows drive. First difference is, if we define address like this from(file://X:/?antInclude=test*.txt&noop=false).to(log:dummy) no files are found. While changing route to from(file://X:?antInclude=test*.txt&noop=false).to(log:dum

Shutdown timeout with Camel / ActiveMQ / prefetchSize = 0

2014-02-06 Thread Nathan Walker
I've been beating my head against this problem for a few days, and I've got a small gist that captures exactly what I'm seeing: http://gist.github.com/walkeriniraq/8850861 Basically, when I subscribe to an ActiveMQ queue with prefetchSize = 1, then things shutdown fine. When I do so with prefetchS

Can't stop streaming

2014-02-06 Thread Alvaro Rodriguez
Hello, I've been struggling with this problem for a few days: http://stackoverflow.com/questions/21531280/how-to-trigger-the-movefailed-option-when-processing-files-with-streaming It seems related to this issue https://issues.apache.org/jira/browse/CAMEL-6627 which should be fixed for me (I'm run

Re: Consuming messages with casting problems

2014-02-06 Thread kraythe .
Its always best to serialize objects going through AMQ into JSON, XML or some other means. Not only does it reduce the problems of compatible JAR files (because they would have to be the SAME jar files on both sides), it also makes messages in the queue easier to read when that becomes necessary. A

Re: GuiceCamelContext checked exception issue with Glassfish4

2014-02-06 Thread Claus Ibsen
Hi Fell free to log a JIRA and as we love contributions you are welcome to work on a patch You can use the object helper to wrap in runtime as we do in other places Something along the lines of try ... catch throw ObjectHelper.wrapRuntimeException(e) On Thu, Feb 6, 2014 at 4:04 PM, brianorw

RE: CxfHeaderFilterStrategy doesn't drop SOAP headers

2014-02-06 Thread scottdawson
Oli, What happens if you add headerFilterStrategy=#dropAllMessageHeadersStrategy to your 'to' route, as shown on this page: https://access.redhat.com/site/documentation/en-US/JBoss_Fuse/6.0/html/Web_Services_and_Routing_with_Camel_CXF/files/Filter-Basic.html

RE: CxfHeaderFilterStrategy doesn't drop SOAP headers

2014-02-06 Thread Oliver Wulff
Hi Sergey Not sure, in my case I explicitly tell Camel not to delegate the soap headers but it does. Thanks Oli From: Sergey Beryozkin [sberyoz...@gmail.com] Sent: 06 February 2014 15:35 To: users@camel.apache.org Subject: Re: CxfHeaderFilterStrategy do

Re: GuiceCamelContext checked exception issue with Glassfish4

2014-02-06 Thread brianorwig
Claus Ibsen-2 wrote > What Camel version do you use? And have you tried with latest release? We have tested this using the latest version 2.12.2 and looked at the code and the issue is there in the code. GuiceCamelContext.java: @PostConstruct @Override public void start() *throws E

Re: CxfHeaderFilterStrategy doesn't drop SOAP headers

2014-02-06 Thread Sergey Beryozkin
Hi Oli I think it is exactly the same side-effect which was reported by one of CXFRS users: https://issues.apache.org/jira/browse/CAMEL-6865 I believe this is configurable, but can be rather unexpected all right... Sergey On 06/02/14 14:25, Oliver Wulff wrote: Hi there I've created the fol

CxfHeaderFilterStrategy doesn't drop SOAP headers

2014-02-06 Thread Oliver Wulff
Hi there I've created the following Camel route: http://camel.apache.org/schema/spring";> The data format is CXF_MESSAGE. This should drop the incoming SOAP headers. The cxf component which produces the message for the target web services reques

Re: Adding Routes to a running Camel Context

2014-02-06 Thread lb
I did something similar, maybe not the best, in an OSGi project I was working on, I've uploaded some of the code in my sandbox repository: https://github.com/lburgazzoli/lb-sandbox-java/tree/master/sbox-camel/src/main/java/com/github/lburgazzoli/sandbox/camel— lb On Thu, Feb 6, 2014 at 2:44 P

Re: Adding Routes to a running Camel Context

2014-02-06 Thread Claus Ibsen
On Thu, Feb 6, 2014 at 12:29 PM, manchandap wrote: > Thanks Claus for the quick reply. > > I had checked this link. My queries: > > # Where should the following code be placed that is in the main class (that > runs the camel context) or some processor. > Anywhere where you want to trigger the log

Re: Adding Routes to a running Camel Context

2014-02-06 Thread manchandap
Thanks Claus for the quick reply. I had checked this link. My queries: # Where should the following code be placed that is in the main class (that runs the camel context) or some processor. /// load route from XML and add them to the existing camel context InputStream is = getClass().getResource

Re: Adding Routes to a running Camel Context

2014-02-06 Thread Claus Ibsen
Hi See this page http://camel.apache.org/loading-routes-from-xml-files.html On Thu, Feb 6, 2014 at 11:08 AM, manchandap wrote: > Respected Camel Experts, > > I have a situation where in I need to add routes to a running Camel Context. > To elaborate, I have Camel (that is a camel context) runn

Adding Routes to a running Camel Context

2014-02-06 Thread manchandap
Respected Camel Experts, I have a situation where in I need to add routes to a running Camel Context. To elaborate, I have Camel (that is a camel context) running in my production environment. A new route has been defined as XML file or Java DSL. My query is that can I make my running camel contex

Hot Standby failover for Apache Camel routes

2014-02-06 Thread Zhemzhitsky Sergey
Hi Camel Gurus, Could you please help me to understand how the hot standby failover policy described here http://www.liquid-reality.de/display/liquid/2011/11/11/Hot+Standby+failover+for+Apache+Camel+routes should work? I was playing with the sample from the github, and it seems to behave pretty

Re: Consuming messages with casting problems

2014-02-06 Thread Claus Ibsen
Hi When you send Java objects over ActiveMQ / JMS - then you must make sure your have the classes on both sides. Eg do you have the classes / JARs on the classpath for the other objects you send over? Also its maybe not the best idea to send java objects over JMS as you now have a very tight coup

Re: Consuming messages with casting problems

2014-02-06 Thread Charles Moulliard
If you would like to expose the logic using Camel, I would like to suggest that you place a CBR (http://camel.apache.org/content-based-router.html) before to call one the methods of your Bean depending which class type you receive from the Body - In. On Thu, Feb 6, 2014 at 9:15 AM, dbenitez wrot

Consuming messages with casting problems

2014-02-06 Thread dbenitez
Hello to all, I'm having problems with a camel Route in an important international project, the matter is I have a camel route configured like this: http://camel.apache.org/schema/spring";> And the receiver is like this: if(exchange.getIn().getBody() instanceof BbMasterOrder

Re: Camel - SFTP rename problems.

2014-02-06 Thread Claus Ibsen
On Wed, Feb 5, 2014 at 11:00 PM, Günther, Dirk wrote: > Hi Jay, > > the move option will always move the file into a subdirectory and will not > rename the file. If you want to rename the file, I think, you can do it with > the ssh endpoint. > No that is not the intend. You idea would be you ca