Re: Camel Spring Bean error Handling

2016-07-25 Thread fxthomas
hi, I am not using any specific camel componenet to access DB. just plain old JDBC after getting the datasource which is injected in the bean. My main issue to track the DB connection issues which is happening in my custom code when the issue goes more than a limit suspend all the routes running

RE: HTTP POST with ProducerTemplate

2016-07-25 Thread wheli
Ok. I was able to figure this out. Changed my code to: Exchange response = template.send(endpoint, new HttpOutboundProcessor(exchange.getOut().getBody().toString())); Integer responseCode = (Integer)response.getOut().getHeader(Exchange.HTTP_RESPONSE_CODE); String responseBody = IOUtils.toString((

Re: FTP Route fails with no errors

2016-07-25 Thread Claus Ibsen
When running standalone in a JVM its about having at least one non daemon thread in the JVM so the JVM is not automatic shutdown. So you should keep the main loop running, and that is what this Camel Main class is about. On Mon, Jul 25, 2016 at 8:45 PM, souciance wrote: > Thanks for the update

Re: FTP Route fails with no errors

2016-07-25 Thread JSmith
Final post: For anyone who comes across this and has the same issue... Inside where ever you're calling your main() method you can simply do the following: import org.apache.camel.spring.Main; ... public static void main..{ Main main = new Main(); main.setApplicationContextUri("whatever.

Re: FTP Route fails with no errors

2016-07-25 Thread souciance
Thanks for the update, although it feels somewhat strange that this would somehow make it work for FTP as a special case. Your code is similar to the example found on the documentation: http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html This shouldn't affect at the prot

Re: Red Hat Request for Logos

2016-07-25 Thread nbostock
Thank you, Claus! Nicole Bostock Marketing Communications Specialist | Red Hat Consulting irc: nbostock m: (910) 551-5138 On Sun, Jul 24, 2016 at 7:30 AM, Claus Ibsen-2 [via Camel] < ml-node+s465427n5785393...@n5.nabble.com> wrote: > Hi > > ActiveMQ do not have a logo. > > But Apache Tomcat has

Re: Dynamic routing after Resequencing messages

2016-07-25 Thread Brad Johnson
You could also use a CBR and look at the "priority" header and look for any priority greater 1 to B otherwise to A. On Mon, Jul 25, 2016 at 7:21 AM, Vitalii Tymchyshyn wrote: > Do you want to do this once? In this case the easiest is just to put a > @RoutingSlip bean that will switch its state a

Re: FTP Route fails with no errors

2016-07-25 Thread JSmith
Update: Turns out if I put a "Thread.sleep()" in the main() method, then FTP transferring will function. Not sure why SFTP works without that and FTP doesn't, should I post that as a new question or would it be easier to answer here? -- View this message in context: http://camel.465427.n5.nab

RE: HTTP POST with ProducerTemplate

2016-07-25 Thread wheli
Ok...how or where would I set the body of the http post in that example? The new Processor could not have context to anything outside its constructor, right? -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-POST-with-ProducerTemplate-tp5785366p5785430.html Sent from the C

Re: Dynamic routing after Resequencing messages

2016-07-25 Thread Vitalii Tymchyshyn
Do you want to do this once? In this case the easiest is just to put a @RoutingSlip bean that will switch its state after first message. Пн, 25 лип. 2016 03:29 користувач sheikhisham пише: > I want to reorder a sequence of messages and dynamically route the messages > according to their order af

Re: Camel Spring Bean error Handling

2016-07-25 Thread Vitalii Tymchyshyn
I doubt DataSource checks the connection on startup. Which camel component are you using to access database? Best regards, Vitalii Tymchyshyn Пн, 25 лип. 2016 03:08 користувач fxthomas пише: > Hello, > >My question is not Camel specific but more Spring bean handling issue. > My issue is tha

Re: Not able to create an multiple rest consumers

2016-07-25 Thread Allan C.
It would be easier to identify the problem if you can post any errors or exceptions from the log file here. Regards, Allan C. On Mon, Jul 25, 2016 at 3:30 PM, kumar wrote: > > Hi All, > > I am facing issue with adding multiple rest consumers in camel. > I have a requirement to create 5 rest con

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

Not able to create an multiple rest consumers

2016-07-25 Thread kumar
Hi All, I am facing issue with adding multiple rest consumers in camel. I have a requirement to create 5 rest consumers on different ports like http://0.0.0.0:10121/user http://0.0.0.0:10122/office http://0.0.0.0:10123/order http://0.0.0.0:10124/external http://0.0.0.0:10125/internal I cannot

Dynamic routing after Resequencing messages

2016-07-25 Thread sheikhisham
I want to reorder a sequence of messages and dynamically route the messages according to their order after resequencing. Say, first message after resequencing should be routed to A, and others to route B. I was able to reorder messages using resequencer, but how do I dynamically route the first me

Camel Spring Bean error Handling

2016-07-25 Thread fxthomas
Hello, My question is not Camel specific but more Spring bean handling issue. My issue is that even if there is an error in bean initialization the camel route starts . I want the camel context only started if there was no errors in Bean initialization . Some of beans are custom but some are