swagger-ui disable in a different environment

2017-02-08 Thread redpower1989
Hello, The current application use this swagger http://camel.apache.org/swagger.html I was wondering if there is any easy way to disable swagger in production environment? Thanks -- View this message in context: http://camel.465427.n5.nabble.com/swagger-ui-disable-in-a-different-environment

Re: file component polling files

2016-10-17 Thread redpower1989
My general goal is to consume fast large quantity of files but while i was experimenting with file component in order to understood how polling works i tried this case. To poll every 30 secs one file but it seems to pick more than one file in those 30 secs and i was wondering if am doing something

Re: file component polling files

2016-10-14 Thread redpower1989
I tried maxMessagesPerPoll = 1 and delay 30 secs and it wasn't picking 1 file every 30 secs and i am wondering if i am setting something wrong on the consumer. By the way i found a way to speed up the file processing and it is the use of threads. Be careful that you need to find a balance for the

file component polling files

2016-10-11 Thread redpower1989
Hello, I have a route which consumes from a file component and the message end up to a activemq queue . I was testing my application to consume a large amount of files. The consumption's is slow and while i was trying to solve the problem i use the follow uri: file://inbox?move=backup/${date:now:

Re: Database route shutdown

2016-09-21 Thread redpower1989
Hello, Thanks for the response. According to the FAQ in order to stop a route it is better to do it inside a different thread. In my case that worked fine. Now i am trying when the database is available to start egain the stopped route. If i want to start a route do i have to do it again from a di

Database route shutdown

2016-09-19 Thread redpower1989
Hello i am trying to stop the route when the application detects that there is no database connection. First in camelContect org.springframework.jdbc.CannotGetJdbcConnectionException Inside my stopRoutePolicy bean: public void onExcha

Re: Convert message into two converters and dilliver them to one destination

2016-07-25 Thread redpower1989
i use the JmsMessageID to filter the message and detect if they are duplicate. I think i get where i do my mistake. Your suggestion to move idempotentConsumer in the "source" is what i want. -- View this message in context: http://camel.465427.n5.nabble.com/Convert-message-into-two-converters-a

Re: Convert message into two converters and dilliver them to one destination

2016-07-21 Thread redpower1989
Let me make it more clear because i am not only send the message to the queue. So basically my two sub-routes use somehow the same idempotent repository. I want basically the incoming message to copy it se

Re: Convert message into two converters and dilliver them to one destination

2016-07-20 Thread redpower1989
Thanks for answer. Does anyone know if you can change the messageId when you are using multicast? At the moment multicast copy the message and the new two messages have the same message ID. If i have a idempotentConsumer before a producer endpoint it will block my second message even if it has been

Re: Convert message into two converters and dilliver them to one destination

2016-07-19 Thread redpower1989
Maybe i could make it more clear. Can i use multicast with too converters ? Something like that I am trying that but i get the message to be converted only to typeB. Is there any possible way to copy the message convert it to A and B and sen

Convert message into two converters and dilliver them to one destination

2016-07-19 Thread redpower1989
Hello, At the momemt my camel route is doing this thing: 1) incoming message. 2) unmarshal it 3) if type of A use converterA else type of B use converterB 4) marshal it 5) to destination. I was wondering if and how can i do. 1)incoming message 2) unmarshal it 3) if type of A converterA and

RE: FileFilter to error queue

2016-06-15 Thread redpower1989
So basically you suggest to use a custom bean to act like a filter ? Can this act like a filter uri consumer? -- View this message in context: http://camel.465427.n5.nabble.com/FileFilter-to-error-queue-tp5784091p5784093.html Sent from the Camel - Users mailing list archive at Nabble.com.

FileFilter to error queue

2016-06-15 Thread redpower1989
Hello According to http://camel.apache.org/file2 I can use GenericFileFilter to either accept file with some conditions when filter returns true or false reject them? Is there any way to move those files to error queue? Thanks -- View this message in contex

Re: Log message body with EventNotifierSupport

2016-06-15 Thread redpower1989
Thanks that class really helps with logging -- View this message in context: http://camel.465427.n5.nabble.com/Log-message-body-with-EventNotifierSupport-tp5783910p5784090.html Sent from the Camel - Users mailing list archive at Nabble.com.

Log message body with EventNotifierSupport

2016-06-11 Thread redpower1989
Hello, i am new in camel. I am trying to use EventNotifierSupport to log details about exchange messages. I am trying to use getSource method to get the message body as a String but i get only the Exchange Id. Is there other way to get the String representation of exchange event? Thanks -- Vie