Re: Camel file component URI dynamic options & Filter query

2016-01-27 Thread Claus Ibsen
You can use a singleton java bean to store the state of that sequence and then in the file route use that in a file filter to only pickup the correct file. You can implement a custom file filter, using the filter option, where you can then access that singleton bean to get that sequence number. Th

Re: Custom sorting using the file component

2016-01-27 Thread Claus Ibsen
Hi Yes implement your own sorter, see the sorter option http://camel.apache.org/file2 On Thu, Jan 28, 2016 at 7:17 AM, David Hoffer wrote: > I have a route that receives several different file types and the names > vary too but always contain a timestamp. I need to process these > in timestamp

Re: Camel beanio mapping file outside the war

2016-01-27 Thread Claus Ibsen
Its fixed in a earlier release - I cannot remember which one. Try to upgrade On Thu, Jan 28, 2016 at 6:46 AM, Pallavi G S wrote: > Thank you for the reply. > > The camel version used in the application is 2.12.1.And this syntax does not > work as it is fixed in 2.17.0. > > Is there any alternativ

Re: Camel beanio mapping file outside the war

2016-01-27 Thread Pallavi G S
Thank you for the reply. The camel version used in the application is 2.12.1.And this syntax does not work as it is fixed in 2.17.0. Is there any alternative for version 2.12.1 to atleast read the property value from the properties file? -- View this message in context: http://camel.465427.n5

Re: [ANNOUNCEMENT] Apache Camel 2.16.2 Released

2016-01-27 Thread Dave Savage
unsubscribe - Original Message - From: "Gregor Zurowski" To: d...@camel.apache.org, users@camel.apache.org, annou...@apache.org Sent: Wednesday, January 27, 2016 1:52:41 PM Subject: [ANNOUNCEMENT] Apache Camel 2.16.2 Released The Camel community announces the immediate availability

java.lang.NullPointerException while using camel beanio component

2016-01-27 Thread Pallavi G S
The dataformat is defined as follows: I'm, reading the file with the below piece of code: In the processor I'm saving the objects to databse. Once the user performs some action on the records,I generate the records into file with the below code.

Custom sorting using the file component

2016-01-27 Thread David Hoffer
I have a route that receives several different file types and the names vary too but always contain a timestamp. I need to process these in timestamp order and planned to use sortBy=file:name, this worked fine in testing but now that we are closer to production we are finding that the file names o

Re: Tutorial on Spring Remoting with JMS

2016-01-27 Thread Taariq Levack
Hi Roger, The mvn:create goal is deprecated[1] for a while and I guess now broken, use mvn:generate instead. Fixed the wiki, thanks for reporting. [1] http://maven.apache.org/archetype/maven-archetype-plugin/create-mojo.html Cheers On Tue, Jan 26, 2016 at 12:01 AM, RogerN wrote: > The Tutori

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-01-27 Thread Ranx
I've reverted to using blueprint.xml for any service reference calls and limiting the routebuilders for now. The part I found most disconcerting about this was that the implementation class was being found since it should be hidden. That means the classloader is pulling it from a bundle and provi

[ANNOUNCEMENT] Apache Camel 2.16.2 Released

2016-01-27 Thread Gregor Zurowski
The Camel community announces the immediate availability of the new patch release Camel 2.16.2. This release contains over 70 fixes applied in the past few weeks by the community on the Camel 2.16.x maintenance branch. The artifacts are published and ready for you to download [1] either from the A

Camel file component URI dynamic options & Filter query

2016-01-27 Thread Felix Thomas
hello, I am trying to make a scenario execute using Camel Spring DSL . My idea is to processing some files in a numerical seq order from a folder , after processing a file I need to check for the next file sequence which need to be processed from DB. The logic of get the next sequen

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-01-27 Thread Quinn Stevenson
I’m not using the annotations, but it sounds like the same issue. I tried something else that seems to work - if I use the Bean Component ( http://camel.apache.org/bean.html ), everything seems to be working as I’d expect. So if I change my RouteBuilder to lo

Unexpected serialisation behaviour of rest dsl consumer using seda

2016-01-27 Thread Rohan
Using Camel 2.16.0, when a rest dsl endpoint hands an exchange off to seda the RestBindingMarshalOnCompletion after route callback is being transferred to the message copy on the seda queue. That causes the synchronous reply from the rest endpoint to not marsal the response. That seems like very in

Re: Camel beanio mapping file outside the war

2016-01-27 Thread lb
I've tested the following snippet on camle 2.17-SNAPSHOT and it works as expected: On Wed, Jan 27, 2016 at 2:04 PM, Claus Ibsen wrote: > Hi > > Yes this i not possible. You cannot refer to ENV in the mapping field in > beanio. > > That would require an ENH which I have logged: > http

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-01-27 Thread Ranx
This is serendipitous as I've recently run into this as well. I switched from straight Blueprint routes and instantiation to using blueprint to bootstrap the routebuilder(s). But the injection of the reference to the service from blueprint doesn't appear to be proxied as I see the concrete class

Re: Can spring and camel co-exists.

2016-01-27 Thread Sag21
Wow thats gr8. Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Can-spring-and-camel-co-exists-tp5776823p5776827.html Sent from the Camel - Users mailing list archive at Nabble.com.

dataformat:// Component with JSON [reposting in Users]

2016-01-27 Thread web_nab...@sunilsamuel.com
NOTE: I am not sure if I've been posting in the wrong section (Development), so I am reposting on Users. Hello, I am trying to use the dataformat: component to unmarshal a JSON payload. The following code works: from("direct-vm:moxy-unmarshal-json") .unmarshal("jsonDataformat"); I wan

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-01-27 Thread Quinn Stevenson
Thanks for the feedback Stephan - you explained a behavior I was seeing when I was putting this together (item 2 in the list below). I tried doing this with the Blueprint DSL to see what happens, and the route behaves as I’d expect. When I stop the bundle providing the service, I get a Service

Re: Can spring and camel co-exists.

2016-01-27 Thread Matt Sicker
Camel runs perfectly fine in Spring and doesn't require you to clobber your existing application. On 27 January 2016 at 09:05, Sag21 wrote: > For existing spring project Our requirement is adding the camel routes for > only > new requirement in Spring context file. > To elaborate I can say suppo

Can spring and camel co-exists.

2016-01-27 Thread Sag21
For existing spring project Our requirement is adding the camel routes for only new requirement in Spring context file. To elaborate I can say suppose there are few existing endpoints available through Spring-ws and in same file we have camel-context for new requirements which have different serv

Camel xpath and xml catalogs

2016-01-27 Thread Knut-Håvard Aksnes
I have the following problem: I do receive some incoming XML containing a SYSTEM doctype referring to a dtd without path. My problem is 1. that I want either xpath or jxpath to ignore the DTD file or to allow me to put the DTD into the class path somewhere using a xml catalog file. The camel docum

Re: Handling inflight messages during shutdown

2016-01-27 Thread Bilgin Ibryam
Hi Naruda, Camel RedeliveryPolicy is suitable only for short delayed retries (couple of ms to couple of seconds) as it is all in Camel app memory. IMHO you should consider the following two options: 1. Recently I had to implement long delayed redeliveries/retries with 5-10 minute delays in Camel.

Handling inflight messages during shutdown

2016-01-27 Thread Naruda
Hi, I currently have Camel setup with a dead letter channels for each of my queues and a redelivery policy that retires 3 times once every 15 minutes. The problem I'm having is that if I shutdown the Camel context I lose those inflight messages, unless I specify a large graceful shutdown period.

Re: Camel beanio mapping file outside the war

2016-01-27 Thread Claus Ibsen
Hi Yes this i not possible. You cannot refer to ENV in the mapping field in beanio. That would require an ENH which I have logged: https://issues.apache.org/jira/browse/CAMEL-9540 On Wed, Jan 27, 2016 at 11:43 AM, Pallavi G S wrote: > 0 > down vote > favorite > 1 > > > I'm using camel beanio c

Re: Change in exception messages between 2.15.3 and 2.16.1 (message bodies are logged)

2016-01-27 Thread Claus Ibsen
Hi Yeah let's avoid any message details in the toString of exchange/message. I logged a ticket https://issues.apache.org/jira/browse/CAMEL-9539 On Wed, Jan 27, 2016 at 12:07 PM, vandenbr...@zorgdomein.nl wrote: > We noticed a difference in Camel's Jms message handling after updating Camel > from

Change in exception messages between 2.15.3 and 2.16.1 (message bodies are logged)

2016-01-27 Thread vandenbr...@zorgdomein.nl
We noticed a difference in Camel's Jms message handling after updating Camel from 2.15.3 to 2.16.1. In our logs we sometimes see messages like these with Camel 2.16.1: Failed delivery for (MessageId: ID-xxx on ExchangeId: ID-xxx). On delivery attempt: 0 caught: org.apache.camel.CamelExchangeExcep

Idempotent Component and DLQ Error Handler

2016-01-27 Thread Michele
Hi everyone, a common requirement in my business is to provide a route with an idempotent component for inbound message. That means that when a message that has already been processed into the route then it will discarded and it will forwarded to queue of message already processed. This doesn't w

Add into the loop

2016-01-27 Thread Kushagra Saxena
Hi, Please add me into the mailing list of camel. Regards, Kushagra

Camel beanio mapping file outside the war

2016-01-27 Thread Pallavi G S
0 down vote favorite 1 I'm using camel beanio component to marshal and unmarshal the data inside the file. It is working fine in tomcat but not working in jboss. So I need to keep the beanio mapping xml outside the war file. By mentioning actual path of mapping xml file for mapping at

jetty - handled true not working as before

2016-01-27 Thread Andreas Siepert
Hi, from 2.15 to 2.16 the jetty behavior changed regarding "handled=true". Based on the snippet from http://camel.apache.org/jetty.html - "How to return a custom HTTP 500 reply message" i wrote the following test (using httpclient-4.3) public class MyTest extends CamelTestSupport { @Test