[ANNOUNCEMENT] Apache Camel 2.17.4 Released

2016-11-30 Thread Gregor Zurowski
The Camel community announces the immediate availability of the new patch release Camel 2.17.4. This release contains 40+ bug fixes and improvements applied in the past months by the community on the Camel 2.17.x branch. The artifacts are published and ready for you to download [1] either from the

Re: camel-jms

2016-11-30 Thread sa_james
I did not know that. I will test it. Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/camel-jms-tp5790832p5790844.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: dynamic endpoint with dynamic encoding

2016-11-30 Thread Steve973
Are you catching and swallowing the exception somewhere? Maybe you could try using one of the exception/error handling features of camel, and log on exception or something. I have a feeling that your production code handles the error in a way that does not propagate up to some level that you are

Re: camel-jms

2016-11-30 Thread Quinn Stevenson
You’re not missing anything - that’s the way the camel-jms and camel-sjms components work. They get a connection from the connection factory when they startup, and the keep using it. You can configure the Camel route to handle some JMS Exceptions and sometimes get the reconnect to work that wa

Re: camel-jms

2016-11-30 Thread sa_james
What u describe is failover. What I mean is for the client to wait until a machine that went down, comes back up while the client is looping waiting to reconnect. camel-sjms does not even let you know that the connection has been lost. Camel just silently continues to run while the connection is go

Re: Route to two paths

2016-11-30 Thread souciance
Ok I would like at generate a new message containing the good ones and a a message for the bad ones. You can see here for how to generate a new message. http://camel.apache.org/how-do-i-write-a-custom-processor-which-sends-multiple-messages.html Essentially you would have to create a list of good

Re: camel-jms

2016-11-30 Thread Quinn Stevenson
If you’re using ActiveMQ, use a failover URL ( http://activemq.apache.org/how-do-i-configure-automatic-reconnection.html ) and both camel-jms and camel-sjms will reconnect. > On Nov 30, 2016, at 11:38 AM, sa_james wro

Save the date: ApacheCon Miami, May 15-19, 2017

2016-11-30 Thread Rich Bowen
Dear Apache enthusiast, ApacheCon and Apache Big Data will be held at the Intercontinental in Miami, Florida, May 16-18, 2017. Submit your talks, and register, at http://apachecon.com/ Talks aimed at the Big Data section of the event should go to http://events.linuxfoundation.org/events/apache-bi

Re: Route to two paths

2016-11-30 Thread spurcell
Tried coding a dynamicRouter, but not understanding how to set the exchange for each different route. Let me step back. I have a list of Objects some good, some bad in my current exchange. So body would be akin to the following: A-GOOD B-GOOD C-GOOD ... F-BAD H-BAD I-BAD ... I want to take the go

camel-jms

2016-11-30 Thread sa_james
Camel noob needs some help. It seems SJMS does not do reconnect. Now I am looking at camel-jms and it seems camel-jms does not batch. Any other alternatives out there? Regards -- View this message in context: http://camel.465427.n5.nabble.com/camel-jms-tp5790832.html Sent from the Camel - Users

Re: java.io.IOException: Response header too large during upload to camel-jetty endpoint

2016-11-30 Thread Vova Shelgunov
Sorry, I would like to name you Claus.. 2016-11-30 19:28 GMT+03:00 Vova Shelgunov : > Ibsen, is there any news about this? > > 2016-11-23 13:50 GMT+03:00 Vova Shelgunov : > >> https://yadi.sk/i/HYF4sApXzHrRC - screenshot from first message. >> >> 2016-11-23 12:55 GMT+03:00 Claus Ibsen : >> >>> We

Re: java.io.IOException: Response header too large during upload to camel-jetty endpoint

2016-11-30 Thread Vova Shelgunov
Ibsen, is there any news about this? 2016-11-23 13:50 GMT+03:00 Vova Shelgunov : > https://yadi.sk/i/HYF4sApXzHrRC - screenshot from first message. > > 2016-11-23 12:55 GMT+03:00 Claus Ibsen : > >> We cannot see screenshots on the mailing list (its for plain text mails). >> I >> suggest to find a

Re: Route to two paths

2016-11-30 Thread Claus Ibsen
There is also eips like routing slip and dynamic router. On Wed, Nov 30, 2016 at 4:12 PM, spurcell wrote: > Our team is trying to avoid doing another split, choice aggregate due to > performance. In my current route, I can create a "good" list and a "bad" > list, so basically the tech lead wants

Re: Route to two paths

2016-11-30 Thread spurcell
Our team is trying to avoid doing another split, choice aggregate due to performance. In my current route, I can create a "good" list and a "bad" list, so basically the tech lead wants me to take the elements from the good list, send them to a specific route, and take the bad list and send them to

Re: Problem with exception handler (onException) on Camel 2.12.X routes.

2016-11-30 Thread vassilis
After doing a little bit more investigation, what happens (as I understand this at least..) is the following: 1. TransactionErrorHandler.processInTransaction() delegates the routing of the exchange to be executed within a transaction. logTransactionBegin(redelivered, ids); * // HERE

Re: How to use the InOut (Request-Reply) pattern in combination with REST/Jetty?

2016-11-30 Thread Quinn Stevenson
Strange - the ActiveMQ configuration shouldn’t have anything to do with this. What versions of Camel and ActiveMQ are you using? I’ve had to use more/different URI options in the JMS URIs in older versions of Camel - I just don’t remember what they are right off hand. > On Nov 30, 2016, at 3:

Re: Route to two paths

2016-11-30 Thread souciance
I guess in that case you need to set the destination upon extracting the list in a header and use the .toD() to do dynamic routing. On Wed, Nov 30, 2016 at 4:12 PM, spurcell [via Camel] < ml-node+s465427n5790822...@n5.nabble.com> wrote: > Our team is trying to avoid doing another split, choice ag

Re: Route to two paths

2016-11-30 Thread Steve Huston
You could have a bean or processor check the data and set the next route in a header. Then use .toD after the bean/processor to send to the proper next step. Steve Huston (sent from my iPhone - please excuse brevity and typos) > On Nov 30, 2016, at 9:27 AM, spurcell wrote: > > In a project I

Re: Route to two paths

2016-11-30 Thread Claus Ibsen
There is the content based router pattern On Wed, Nov 30, 2016 at 3:25 PM, spurcell wrote: > In a project I am working on, I am parsing a large excel file, and during the > routing, I am performing some validation on the data. I have a route that > performs the validation, and if validation is go

Re: Route to two paths

2016-11-30 Thread souciance
Hello, Set appropriate headers using .header("type",constant("good/bad")) Then use the conditional operators to route accordingly..Something like. .choice().when(header("type").isequalto("good")).to("direct: good").otherwise().to("direct:bad").end(); Best Souciance On Wed, Nov 30, 2016 at 3:25 P

Re: Route to two paths

2016-11-30 Thread souciance
Set appropriate headers using .header("type",constant("good/bad")) Then use the conditional operators to route accordingly..Something like. .choice().when(header("type").isequalto("good")).to("direct:good").otherwise().to("direct:bad").end(); On Wed, Nov 30, 2016 at 3:30 PM, Claus Ibsen-2 [via Cam

Re: Route to two paths

2016-11-30 Thread Maruan Sahyoun
Hi, > Am 30.11.2016 um 15:25 schrieb spurcell : > > In a project I am working on, I am parsing a large excel file, and during the > routing, I am performing some validation on the data. I have a route that > performs the validation, and if validation is good, I want to continue down > the same ro

Route to two paths

2016-11-30 Thread spurcell
In a project I am working on, I am parsing a large excel file, and during the routing, I am performing some validation on the data. I have a route that performs the validation, and if validation is good, I want to continue down the same routes that exist. But if the data is invalid, I want to pass

Re: Canot start DefaultCamelContext for Camel-core 2.18.0

2016-11-30 Thread Claus Ibsen
Hi Make sure you use Java 8 and that you do not have mixed versions of Camel on the classpath. On Wed, Nov 30, 2016 at 2:58 PM, imben1109 wrote: > I simply create DefaultCamelContext and start for camel-core-2.18.0 > > public class Appl { > public static void main(String[] args) throws Excepti

Canot start DefaultCamelContext for Camel-core 2.18.0

2016-11-30 Thread imben1109
I simply create DefaultCamelContext and start for camel-core-2.18.0 public class Appl { public static void main(String[] args) throws Exception{ CamelContext context = new DefaultCamelContext(); context.start(); } } However, it throws UnsupportedOperationException. It works fine in

CachingConnectionFactory and clientID

2016-11-30 Thread ZeekLumpkins
Hello, I had a question, hoping to get some verification before changing alot of things around. I have a set of camel routes just set up with the normal connections which ran fine though noticed a low throughput rate. My 'to' line ran something so I was specifying a clientID in each of my route

Dropbox - localPath needs to exist at route building

2016-11-30 Thread umeetiusbaarus
Hi! I am trying out camel-dropbox in my integration but I bumped into a small problem: the component needs to have the directory or file described in "localPath" existing already when constructing the routes. In my use case I would create the local file prior to copying it to Dropbox in the routing

Re: dynamic endpoint with dynamic encoding

2016-11-30 Thread morten
I get no exception when building this: .toD("file://" + outputDirectory + File.separator + "?fileExist=Append&charset=$(header.inputFileEncoding)"); The code only breaks when i try to write to the file due to NoSuchFileException. I would have expected to get a camel.FailedToCreateRouteException

AW: How to use the InOut (Request-Reply) pattern in combination with REST/Jetty?

2016-11-30 Thread Wein, Frank (RRZE)
Hi all, just a short update: It looks like I made a mistake on the activemq configuration(?) itself, with an embedded ActiveMQ instance it seems to work fine ("ActiveMQComponent.activeMQComponent("vm://localhost?broker.persistent=false"));). I will take a look at this then. Thanks for everyone

Re: dynamic endpoint with dynamic encoding

2016-11-30 Thread Claus Ibsen
Btw you didn't get any error about that invalid charset name? I would have thought there was some exception as the charset is validated with org.apache.camel.util.IOHelper#validateCharset On Wed, Nov 30, 2016 at 11:23 AM, morten wrote: > Thank you for pointing out my stupid mistake > > > > > > -

Re: Problem with exception handler (onException) on Camel 2.12.X routes.

2016-11-30 Thread vassilis
Hi, It seems I have the same issue with Camel 22.15.1.redhat-621159. Did you find a proper solution? Just to be more specific, in my case OnException is executed fine if an exception is thrown in the route, BUT it is not executed in cases when the Database is down and no transaction can be even c

Re: dynamic endpoint with dynamic encoding

2016-11-30 Thread morten
Thank you for pointing out my stupid mistake -- View this message in context: http://camel.465427.n5.nabble.com/dynamic-endpoint-with-dynamic-encoding-tp5790768p5790793.html Sent from the Camel - Users mailing list archive at Nabble.com.