Re: sftp to remote server and move ftpied file to other location on remote server

2012-06-11 Thread Claus Ibsen
On Tue, Jun 12, 2012 at 12:22 AM, paramjyotsingh wrote: > I tried this but still same problem. It is not creating temporary file in > folder /a/test2/ > instead it creates /a/test1/a/test2 folder and copies temporary file there. > > I am not sure that absolute paths is supported for temp files. It

Re: Web Services calls via camel not working (Class cast exception)

2012-06-11 Thread Claus Ibsen
Hi If you read this page, you get some pointers how to ask for help. http://camel.apache.org/support How do you expect people want to help you when you provide little details. On Mon, Jun 11, 2012 at 5:09 PM, semecamel wrote: > I have a web service which I published via cxf endpoint and adde

Re: XPath Filter not working

2012-06-11 Thread Claus Ibsen
On Tue, Jun 12, 2012 at 12:17 AM, paramjyotsingh wrote: > Hi, > > I am trying to use XPath, but somehow it is not responding the way it is > supposed to. > > Example i have a xml input of type:- > > > > .. > > > > and I am trying spring dsl filter:- > > > > > /Products/Product[@

Re: Bit-wise operators in Simple?

2012-06-11 Thread Claus Ibsen
On Mon, Jun 11, 2012 at 11:47 PM, dunnlow wrote: > I just wanted to verify that I'm not missing something. I'd like to do bit > arithmetic (i.e. use a bitmapped value). I know I could use javascript, > but > I like Simple's the null safe operator; however I don't see where bitwise > operators

Re: How to generate XML comments in XML file using Java annotations

2012-06-11 Thread Claus Ibsen
On Mon, Jun 11, 2012 at 9:46 PM, reddy.janke wrote: > Hi , I am generating XML file based on the Java beans using JAXB. I want to > add XML comments in the XML file. Please let me know how to add comments. > > This is not possible with JAXB as far as I remember. Something we would love being adde

Re: Custom Camel Component instantiated twice

2012-06-11 Thread Claus Ibsen
On Mon, Jun 11, 2012 at 11:48 PM, boday wrote: > yes, there are multiple Endpoint instances as well (one per route > reference)... > > No that depends if your endpoint is singleton or not. If the producer and consumer have the exact uri, then they can share the same endpoint if its singleton. And

Re: sftp to remote server and move ftpied file to other location on remote server

2012-06-11 Thread paramjyotsingh
I tried this but still same problem. It is not creating temporary file in folder /a/test2/ instead it creates /a/test1/a/test2 folder and copies temporary file there. -- View this message in context: http://camel.465427.n5.nabble.com/sftp-to-remote-server-and-move-ftpied-file-to-other-location-on

XPath Filter not working

2012-06-11 Thread paramjyotsingh
Hi, I am trying to use XPath, but somehow it is not responding the way it is supposed to. Example i have a xml input of type:- .. and I am trying spring dsl filter:- /Products/Product[@type='BOX'] with XML input i provided the filter should match Xpath predi

Bit-wise operators in Simple?

2012-06-11 Thread dunnlow
I just wanted to verify that I'm not missing something. I'd like to do bit arithmetic (i.e. use a bitmapped value). I know I could use javascript, but I like Simple's the null safe operator; however I don't see where bitwise operators exist in Simple. Is that correct? -- View this message in c

Simplest Camel HTTP4 example not working!

2012-06-11 Thread pmcb55
Hi, I'm using Camel already, but am now trying to use the HTTP component, and started with the simplest possible usage I can think of - sending a simple search query to Google using a ProducerTemplate. The code runs, but just hangs on the 'template.request(...' call until a timeout of two minutes

How to generate XML comments in XML file using Java annotations

2012-06-11 Thread reddy.janke
Hi , I am generating XML file based on the Java beans using JAXB. I want to add XML comments in the XML file. Please let me know how to add comments. -- View this message in context: http://camel.465427.n5.nabble.com/How-to-generate-XML-comments-in-XML-file-using-Java-annotations-tp5714301.html

Custom Camel Component instantiated twice

2012-06-11 Thread Edwin
Hi Folks I am referencing the same camel endpoint from 2 different routes. E.g. customcomponent:custom-uri is being referenced from the 2 routes below from(“customcomponent:custom-uri”).to(……. from(“file:myfile?fileProperties..”).to(“customcomponent:custom-uri”); I notice that the corresponding

Re: Custom Camel Component instantiated twice

2012-06-11 Thread boday
yes, there are multiple Endpoint instances as well (one per route reference)... If you need to share state between instances, then you can define it in the Component class and pass into into endpoint/producer/consumer instances via constructors. for an example of doing this, see camel-hazelcast, i

Re: Custom Camel Component instantiated twice

2012-06-11 Thread gilboy
So if there can be multiple Consumer & Producer instances in a given context (one per route reference), this would imply that there could be multiple instance of the Endpoint(again one per route reference)? I have a custom component where I need to share state between the producer and the consumer

Re: Custom Camel Component instantiated twice

2012-06-11 Thread boday
your CustomComponent class should only be instantiated once per CamelContext, but there can be multiple Consumer & Producer instances in a given context (one per route reference) Edwin wrote > > Hi Folks > > I am referencing the same camel endpoint from 2 different routes. > > E.g. > customcom

RE: Possible threading issue

2012-06-11 Thread jhart
Thanks. From: ext jhart [via Camel] [mailto:ml-node+s465427n5714299...@n5.nabble.com] Sent: Monday, June 11, 2012 2:22 PM To: Hart James (Nokia-LC/Malvern) Subject: Re: Possible threading issue Thanks for the feedback, I've reviewed the references you pointed out and decided to simplify the rout

Re: Possible threading issue

2012-06-11 Thread jhart
Thanks for the feedback, I've reviewed the references you pointed out and decided to simplify the route. I have remove all of my .threads(...) DSL calls. I only use parallelProcessing in 1 place now and I am still running into the problem. Below is a version that fails and one that works because

Re: How does Camel work with ofbiz?

2012-06-11 Thread bibryam
Just an update on this old thread: I've blogged about how to connect OFBiz with Camel here http://www.ofbizian.com/2012/06/connect-apache-ofbiz-with-real-world.html And provided two examples for connecting them: 1. Run Camel as part of OFBiz 2. Run Camel and OFBiz separately and use the RMI compon

Web Services calls via camel not working (Class cast exception)

2012-06-11 Thread semecamel
I have a web service which I published via cxf endpoint and added to my camel context in spring xml file. My web service method returns an object. I created a Processor class to do actual work. How I can return an object after calling my cxf endpoint? I am getting class cast exception. I am tryi

Re: Using % sign in spring route sql select fails

2012-06-11 Thread Claus Ibsen
In XML DSL you should be able to do it using spring bean style. It does take a bit XML as you need to setup a spring jdbc template also ... the data source need to be injected And in the DSL refer to the foo endpoint On Mon, Jun 11, 2012 at 12:58 PM, Claus Ibsen wrote: > Hi > >

Re: Camel Error handling throwing exception; not moving to error queue

2012-06-11 Thread javaxmlsoapdev
using 2.9.2. Could you let me know if there is an issue with such deadLetterChannel setting working with receipientList EIP? Thanks, -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Error-handling-throwing-exception-not-moving-to-error-queue-tp5714076p5714290.html Sent fr

Re: doTry/doCatch with original message

2012-06-11 Thread Jens
Claus Ibsen-2 wrote > > On Wed, May 30, 2012 at 2:09 PM, Jens wrote: >> >> Jens wrote >>> >>> >>> Claus Ibsen-2 wrote Hi Have you tried enabling stream caching? http://camel.apache.org/stream-caching.html >>> >>> Yes, and I also tried converting the message to a Stri

Re: Using % sign in spring route sql select fails

2012-06-11 Thread Claus Ibsen
Hi I logged a ticket to see if we can fix this https://issues.apache.org/jira/browse/CAMEL-5355 On Mon, Jun 11, 2012 at 9:38 AM, Jesper Olsen wrote: > We are using camel version 2.7.1 > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Using-sign-in-spring-route-sql-sele

Handling Database and Activemq connection exceptions

2012-06-11 Thread Nafees
Hi, I want to catch database related exceptions. e.g. if username or password are incorrect , it throws exceptions, i want a mechanism in which i could handle the exception, and specify user what details were wrong. Database details are specified in persistence.xml file and we are using JpaTempla

Re: camel aws s3 get only files I need

2012-06-11 Thread Bilgin Ibryam
inline On 8 June 2012 18:34, fachhoch wrote: > The change is very simple yes that's correct > > here the code from S3consumer > > > first change is to the S3Configuration  add new field String prefix; > > > second update the above method to call setPrefix on   the ListObjectsRequest > if prefix

Re: Using % sign in spring route sql select fails

2012-06-11 Thread Jesper Olsen
We are using camel version 2.7.1 -- View this message in context: http://camel.465427.n5.nabble.com/Using-sign-in-spring-route-sql-select-fails-tp5714171p5714275.html Sent from the Camel - Users mailing list archive at Nabble.com.