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

2012-06-07 Thread Claus Ibsen
On Thu, Jun 7, 2012 at 6:50 PM, paramjyotsingh wrote: > Hi, > > Thanks for the quick reply. "tempFileName" working fine for me, with just > one glitch. > > on ftp server i have paths like /a/test1 and /a/test2 and my tmp file will > be in dir /a/test2, where "/" is ftp root. > > When my ftp uri is

Re: Injecting a ProducerTemplate in a POjo

2012-06-07 Thread Claus Ibsen
The ProducerTemplate has API for sending a message to *any* Camel endpoint template.sendBody("log:blah", "Hello Log"); The uri in the annotation, is just the default uri, if you do not specify any eg template.sendBody("Hello default channel"); On Thu, Jun 7, 2012 at 11:36 PM, Marco Mistroni w

Re: Transacted vs DeadLetterQueue

2012-06-07 Thread James Carman
I've been doing a little playing around with this problem today (and this week). I'm using a "purgatory" queue to get the "poison" out of the way temporarily. I go ahead and let the transactions rollback and put the message back on the queue, but I "blacklist" the message so that I know to send i

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

2012-06-07 Thread javaxmlsoapdev
My response was prematured. Apparently I still get followign exception. now standing up against a wall. Anybody any idea? unable to handle it/catch/unable to forward to error queue. 2012-06-07 17:12:19.931 [pool-12-thread-13] [WARN ] org.apache.camel.processor.UnitOfWorkProcessor - Caught unhandl

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

2012-06-07 Thread javaxmlsoapdev
My response was prematured. Apparently I still get followign exception. now standing up against a wall. Anybody any idea? unable to handle it/catch/unable to forward to error queue. 2012-06-07 17:12:19.931 [pool-12-thread-13] [WARN ] org.apache.camel.processor.UnitOfWorkProcessor - Caught unhandle

Help Needed (Came cxf)

2012-06-07 Thread semecamel
I have a web service as exposed as camel cxf endpoint, but when I call the web service I get error below. Here is my web service, I can't tell what I am doing wrong. I use eclipse to generate web service client using cxf. @WebService public interface OrderServiceCamelWS { public void ins

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

2012-06-07 Thread paramjyotsingh
Hi, Thanks for the quick reply. "tempFileName" working fine for me, with just one glitch. on ftp server i have paths like /a/test1 and /a/test2 and my tmp file will be in dir /a/test2, where "/" is ftp root. When my ftp uri is "ftp://::/a/test1/?tempFileName=/a/test2/tmp.xml", it places tmp file

Re: Transacted vs DeadLetterQueue

2012-06-07 Thread James Carman
Sorry, didn't see the rest of your message. Anyway, the problem you're going to face here is that suppose you do some stuff (database inserts, place messages on queues, etc.) between your input queue and your web service. That "stuff" needs to get rolled back when you have an issue and route your

Re: Transacted vs DeadLetterQueue

2012-06-07 Thread James Carman
Your transaction isn't rolling back if you "handle" the exception, is it? On Thu, Jun 7, 2012 at 12:21 PM, gramanero wrote: > I have tested the case of using a route specific onException clause within a > transaction and it appears to work as I would expect (or hope). So I have a > route that is

Re: zip file best practices

2012-06-07 Thread alexey-s
You can not get a ZipFile from InputStream. We can only ZipInputStream. When processing files within the zip file, you can not close the stream reader. This is an InputStream for the entire zip file. Enclose an example of processing of xml file inside the zip file. In the example of a very large

Re: migration camel attachment problem

2012-06-07 Thread Christian Müller
Hello Mathieu! I added users@cxf in cc because it looks it's a CXF issue. You really upgraded from cxf 2.4.6 to 2.2.9? It sounds like a downgrade... Did you only upgrade the client side or the server side too? Could you also please post the CXF configuration here, I was asking for? Best, Christia

Injecting a ProducerTemplate in a POjo

2012-06-07 Thread Marco Mistroni
hi all i have a camel app in which i have exposed few JMX beans. I want to be able to send a message to a channel via my JMX bean. I have read the POJO Producing info here http://camel.apache.org/pojo-producing.html and at the moment i am doing this in my JMX bean @EndpointInject(uri="seda:t

Re: Camel OSGi services component

2012-06-07 Thread Sergey Zhemzhitsky
Hello everybody, Thanks for considering the component. >> osgi name is not the best name I suppose the name should be short, should prevent misunderstandings about the environment where it can be used, possibly it should describe what the component is supposed to do. Although osgi is widely-use

Re: camel aws s3 get only files I need

2012-06-07 Thread Christian Müller
I created the ticket for you: https://issues.apache.org/jira/browse/CAMEL-5343 May be it will be your first patch? We love contributions... ;-) Best, Christian On Thu, Jun 7, 2012 at 2:27 PM, Bilgin Ibryam wrote: > I can see that S3Consumer doesn't have option to specify a prefix, but > it seem

Re: Issue with queue for parallel processing

2012-06-07 Thread Deepthi
I am using camel 2.8.0. I will not be able to use 2.9.0 due to some reasons. How can i achieve the same in 2.8.0? -- View this message in context: http://camel.465427.n5.nabble.com/Issue-with-queue-for-parallel-processing-tp5714137p5714140.html Sent from the Camel - Users mailing list archive at

Re: Transacted vs DeadLetterQueue

2012-06-07 Thread gramanero
I have tested the case of using a route specific onException clause within a transaction and it appears to work as I would expect (or hope). So I have a route that is transactional and the final endpoint in the route throws an exception I forced my restful service to just throw an exception). Witho

Re: Issue with queue for parallel processing

2012-06-07 Thread Claus Ibsen
Hi You need to enable the asyncConsumer on the jms endpoint http://camel.apache.org/jms On Thu, Jun 7, 2012 at 6:14 PM, Deepthi wrote: > Hi, > > If I give the route as: > > > > > > The above route reads a file from source generates a thread and invokes web > service. Even if 1 thread gets

Issue with queue for parallel processing

2012-06-07 Thread Deepthi
Hi, If I give the route as: The above route reads a file from source generates a thread and invokes web service. Even if 1 thread gets blocked, the remaining threads get executed. But, if i change the source to queue as below: If 1 thread gets blocked, the route is not reading the next m

Re: Camel route configuration help

2012-06-07 Thread javakurious
Thanks Walter. I adapted your idea and changed it little bit. At the start of the request handling I save off the original request as a header. I changed the xslt at (D) to read the original request as header. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-route-configu

camel newbie design question

2012-06-07 Thread javakurious
I am just starting on camel. I am looking at all sorts of examples and tutorials before starting on my project. My goal is to create a webservice supporting soap 1.1, soap 1.2, HTTP GET, and HTTP post. For examples here is a link to a webservice that can be accessed different ways : http://www.vis

Re: How to force rollback in spring DSL route?

2012-06-07 Thread Claus Ibsen
On Thu, Jun 7, 2012 at 4:11 PM, dunnlow wrote: > Thanks Claus. And in the vein of "teach a man to fish..." where would one > find information about the command (is it safe to assume that if > .rollback() exists there is a Spring counterpart)? > > If you have a good editor, you just press ctrl +

Re: How to force rollback in spring DSL route?

2012-06-07 Thread dunnlow
Thanks Claus. And in the vein of "teach a man to fish..." where would one find information about the command (is it safe to assume that if .rollback() exists there is a Spring counterpart)? Also, I had considered throwing an exception but was not sure how to do that in Spring DSL. Creating a

Re: Transacted vs DeadLetterQueue

2012-06-07 Thread James Carman
Does onException() happen within the transaction too? If so then your rollback will rollback your DLC put also. On Jun 7, 2012 9:18 AM, "gramanero" wrote: > Yes, that is correct and actually in my case that "may" be what I want to > have happen (i.e. the message gets put back onto queue A). How

Re: Rethrow original exception

2012-06-07 Thread pvenini
Claus, thanks for your response. I tried to use throwException(simple("${exception}")) but it gives me a compile time error: The method throwException(Exception) in the type ProcessorDefinition is not applicable for the arguments (SimpleBuilder) I'm using Camel 2.7.2. Yours Pablo -- View t

Re: Difference between splitter and custom thread

2012-06-07 Thread Deepthi
:). I meant the purpose both are fetching. -- View this message in context: http://camel.465427.n5.nabble.com/Difference-between-splitter-and-custom-thread-tp5714098p5714130.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Transacted vs DeadLetterQueue

2012-06-07 Thread gramanero
Yes, that is correct and actually in my case that "may" be what I want to have happen (i.e. the message gets put back onto queue A). However yesterday I did some digging into the onException clause and I'm finding it very useful. For example, if when "something bad happens" an exception is thrown,

Re: camel aws s3 get only files I need

2012-06-07 Thread Bilgin Ibryam
I can see that S3Consumer doesn't have option to specify a prefix, but it seems fairly easy to add one. Do you want to give it a try to submit a patch? Bilgin On 6 June 2012 23:51, fachhoch wrote: > using camel aws-s3 can I just get just the objects I need ?,  can I    get > files only from /so

Re: Transacted vs DeadLetterQueue

2012-06-07 Thread James Carman
On Wed, Jun 6, 2012 at 11:35 PM, Claus Ibsen wrote: > > Nothing is reliable. > > You would need to use for example Camel's dead letter channel, and > send the messages to another JMS queue, which is the DLQ. > And then use transactions so it appears as a atomic operation. With transactions and D

Re: java.lang.ClassNotFoundException: org.apache.cxf.message.MessageContentsList

2012-06-07 Thread semecamel
I found that the issue in activemq. My camel app is connecting to external activemq server, and it did not have apache cxf jar in classpath. I added cxf jar in activemq lib directory and it worked. Thanks -- View this message in context: http://camel.465427.n5.nabble.com/java-lang-ClassNotFoundE

Camel Maven plugin with Spring config & jetty server

2012-06-07 Thread Bharat
Hello Gurus, I want to use camel-maven-plugin (camel:dot) to get a visual report of the camel routes defined in my spring application context. org.apache.camel camel-maven-plugin ${camel.version}

Re: zip file best practices

2012-06-07 Thread Claus Ibsen
On Mon, May 28, 2012 at 5:55 PM, Christian Müller wrote: > What do you think about the following proposal: > > 1) Add a type converter which supports a conversion from InputStream -> > ZipFile and from InputStream -> ZipInputStream > 2) Implement a splitter which extract the (multiple) ZipEntry, a

Re: Camel OSGi services component

2012-06-07 Thread Jean-Baptiste Onofré
Hi guys, I will take a look. Agree with you that osgi name is not the best name. Thanks Regards JB On 06/07/2012 09:32 AM, Claus Ibsen wrote: Hi We are in the process of getting Camel 2.10 done and released. Your component looks interesting but I would like more time to look into it, and als

Re: Camel OSGi services component

2012-06-07 Thread Claus Ibsen
Hi We are in the process of getting Camel 2.10 done and released. Your component looks interesting but I would like more time to look into it, and also for the SMX / Karaf team to take a look at was, as its OSGi based. And I wonder if the scheme name of osgi is a good name, as osgi is a broad ter

Re: adding headers to a message based on a databse query

2012-06-07 Thread Claus Ibsen
On Thu, Jun 7, 2012 at 8:26 AM, Alexander Kaiser wrote: > Hi Claus, > > thanks for your answer! > > Isn't it so that setHeader only sets one (named) header? > So to set multiple headers from a single query I do have to use content > enricher + custom aggregation strategy? > Yes setHeader sets onl