FileNotFound exception is not thrown while doing SFTP

2014-02-28 Thread geetha
Hi, I am using Camel 2.12.1. Am using SFTP to consume a particular file from a server inside a processor. I'm not getting any exception if the specified file is not there in the location. Camel route is not proceeding after this point. it just hangs there. Exchange ex = consumer.receive("sftp://

Re: useOriginalMessage with direct-vm

2014-02-28 Thread Karsten Vileid
Ok, any best practises for handling this. We are using jboss-fuse with its osgi container and bundles. And working in a bundle with direct between the sub-routes. However some sub-routes handled common reusable functionality, so we moved these reusable sub-routes to a common bundle and used direct

Re: FileNotFound exception is not thrown while doing SFTP

2014-02-28 Thread Claus Ibsen
Hi Read the javadoc of the receive method. On Fri, Feb 28, 2014 at 9:29 AM, geetha wrote: > Hi, > > I am using Camel 2.12.1. Am using SFTP to consume a particular file from a > server inside a processor. I'm not getting any exception if the specified > file is not there in the location. Camel r

Re: How to improve efficiency with Camel?

2014-02-28 Thread Henryk Konsek
> Damn, I tried your suggestion, but it doesn't work. This i what I have: Try to "filter" messages before the "threads". Unfortunately Java Threads DSL is a little bit less flexible than it's XML version. > If I may ask, what is the difference between DSL and SEDA? Threads DSL submits processing

Re: how to do redelivery message

2014-02-28 Thread Henryk Konsek
Hi, > So I want to config the camel make it redelivery the message if the > processorService returens null? > Is there any way? You can check for the null value returned, throw the exception if the test result is positive and let Camel redeliver the message using the Redelivery Policy [1]. C

Re: TimeToLive property not working in case of DynamicRouter

2014-02-28 Thread abhijeet.bongarde
Can anybody put a light on this?? -- View this message in context: http://camel.465427.n5.nabble.com/TimeToLive-property-not-working-in-case-of-DynamicRouter-tp5747895p5748079.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: FileNotFound exception is not thrown while doing SFTP

2014-02-28 Thread geetha
Yeah understood the problem. i am listening to a queue for a message which contains the ftp server details and path of the file. based upon the server details i have to get the file. So i used consumer.receive inside one of my processor.It worked fine if file exists. Without using consumer.receiv

Re: FileNotFound exception is not thrown while doing SFTP

2014-02-28 Thread Claus Ibsen
See the other methods that has a timeout to avoid waiting until a file becomes available. On Fri, Feb 28, 2014 at 11:27 AM, geetha wrote: > Yeah understood the problem. > > i am listening to a queue for a message which contains the ftp server > details and path of the file. based upon the server

Re: FileNotFound exception is not thrown while doing SFTP

2014-02-28 Thread geetha
Thanks a lot it worked as per my requirement. -- View this message in context: http://camel.465427.n5.nabble.com/FileNotFound-exception-is-not-thrown-while-doing-SFTP-tp5748073p5748081.html Sent from the Camel - Users mailing list archive at Nabble.com.

Problem with XmlConverter after upgrade to 2.12.3

2014-02-28 Thread Preben.Asmussen
I just upgraded a integration running on Weblogic under jrockit 1.6 and found a problem related to the change in XmlConverter.createTransformerFactory introduced in 2.12.3. where the factory.setFeature(javax.xml.XMLConstants.FEATURE_SECURE_PROCESSING, true); seems to have sideeffects when runnin

Calling a REST URL dynamically

2014-02-28 Thread Steffen Larsen
Hi Guys, I need to call different URLs all depending on a earlier route. So based on a earlier header I need to update the URL that needs to be called. I have tried: .setHeader(Exchange.ACCEPT_CONTENT_TYPE, constant("application/json")) .setHeader(Exchange.HTTP_METHOD, constant("GET")) .setHeade

Re: Calling a REST URL dynamically

2014-02-28 Thread Reji Mathews
Have you referred Routing Slip concept? http://camel.apache.org/routing-slip On Fri, Feb 28, 2014 at 5:12 PM, Steffen Larsen wrote: > Hi Guys, > > I need to call different URLs all depending on a earlier route. > So based on a earlier header I need to update the URL that needs to be > called. >

Re: Calling a REST URL dynamically

2014-02-28 Thread Henryk Konsek
Hi Steffen, > I need to call different URLs all depending on a earlier route. > So based on a earlier header I need to update the URL that needs to be called. The most generic way to deliver the request to the dynamic endpoint is to use Recipient List [1] EIP: from(...).recipientList(header("end

Re: Calling a REST URL dynamically

2014-02-28 Thread Steffen Larsen
Ahhh perfect! that’s exactly what I wanted. Thanks Henryk! :-) Now I just need to find out how to use my restlet component inside a container and make it work. Right now I have something like: from("restlet:http://0.0.0.0:8080/api/hello/{world}?restletMethod=post";).process(new MyBean()) From

Re: Camel Quartz2 Clustering fails due to durable jobs, has anyone got

2014-02-28 Thread fherpertz
Hi, I have a similiar problem and I tried to track it down. After some time of work and testing several possibilities I took a look at the Quartz 2.2.0 sources and at the migration guide from quartz to quartz2. On the quartz homepage in the Migration guide

Re: Calling route via direct that does an HTTP POST

2014-02-28 Thread mister blinky
Lovely. Thank you. -- View this message in context: http://camel.465427.n5.nabble.com/Calling-route-via-direct-that-does-an-HTTP-POST-tp5748043p5748092.html Sent from the Camel - Users mailing list archive at Nabble.com.

camel-spring schemas

2014-02-28 Thread Preben.Asmussen
Shouldn't the camel-spring.xsd schemas have been update to the latest release ? The current camel-spring.xsd is from june last year. -- View this message in context: http://camel.465427.n5.nabble.com/camel-spring-schemas-tp5748097.html Sent from t

Re: Problem with XmlConverter after upgrade to 2.12.3

2014-02-28 Thread Claus Ibsen
Hi Maybe get in touch with your app server vendor about this? Not sure why it talks about Java 1.5? Its an official constant from the JDK http://docs.oracle.com/javase/6/docs/api/javax/xml/XMLConstants.html#FEATURE_SECURE_PROCESSING On Fri, Feb 28, 2014 at 12:42 PM, Preben.Asmussen wrote: > I

Bean MethodNotFound Exception though it looks correct

2014-02-28 Thread eswar
hi - this looks obvious but I am not sure if Camel has any restrictions in using the bean which is defined with parent and as singleton. I m using Camel 2.12.2 and this works all fine if I use a simple class(without any superclass) with a method in it. Also I do have AOP's defined on certain metho

Re: Problem with XmlConverter after upgrade to 2.12.3

2014-02-28 Thread Preben.Asmussen
Yeah - I'll dig into it next week and find a workaround. I'll post the result back here for others to use. -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-XmlConverter-after-upgrade-to-2-12-3-tp5748082p5748112.html Sent from the Camel - Users mailing list archiv

CamelBlueprintTestSupport and URL Handler Service

2014-02-28 Thread samslara
Hello, I'm trying to use CamelBlueprintTestSupport to simulate how we have our production setup as but i'm running into a problem. Our production setup makes use of OSGi URL Handler Service to handle certain URLs that are in our blueprint files however when using CamelBlueprintTestSupport I can'

[ANNOUNCE] CVE-2014-0002 and CVE-2014-0003 - Apache Camel critical disclosure vulnerability

2014-02-28 Thread Christian Mueller
If you are using the Apache Camel XSLT component, please note that the security advisories CVE-2014-0002 and CVE-2014-0003 may affect you. Please study these critical security vulnerability carefully! http://camel.apache.org/security-advisories.data/CVE-2014-0002.txt.asc http://camel.apache.org/s

Re: How to copy files from one directory to another within the same ftp server.

2014-02-28 Thread Christian Müller
As simple as ftp://in"/> ftp://out"/> Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.linkedin.com/pub/christian-mueller/11/551/642 On Tue, Feb

Re: JDBC Connection object in Camel Processor

2014-02-28 Thread Christian Müller
This is an example how to configure a pooled data source which is injected into a transaction manager. You have to inject it into a processor instead. [1] https://github.com/muellerc/camel-in-transaction/blob/master/src/test/resources/META-INF/spring/JdbcTransactionSampleTest-context.xml Best, C

Re: JDBC Connection object in Camel Processor

2014-02-28 Thread Christian Posta
also consider using an osgi service for your pooling facotry and blueprint (or declarative services) to grab the connection/pool On Fri, Feb 28, 2014 at 2:18 PM, Christian Müller wrote: > This is an example how to configure a pooled data source which is injected > into a transaction manager. You

Re: CamelBlueprintTestSupport and URL Handler Service

2014-02-28 Thread Christian Posta
if you can put together a simple test-case i would gladly take a look for you. the blueprint test support can be tricky when depending on external services to be present, but it can usually be coaxed to work :) On Fri, Feb 28, 2014 at 11:00 AM, samslara wrote: > Hello, > I'm trying to use Camel

Re: Bean MethodNotFound Exception though it looks correct

2014-02-28 Thread Christian Posta
the names accessible are probably those seen in the interfaces and not concrete classes as spring is using dynamic proxies for you On Fri, Feb 28, 2014 at 9:11 AM, eswar wrote: > hi - this looks obvious but I am not sure if Camel has any restrictions in > using the bean which is defined with pare

Re: CamelBlueprintTestSupport and URL Handler Service

2014-02-28 Thread Claus Ibsen
Hi camel-test-blueprint does not use a real OSGi container. But uses pojosr which only offers a limited functionality of OSGi container. For your use-case you need to use pax-exam for testing which bootup a real Karaf OSGi container. On Sat, Mar 1, 2014 at 1:29 AM, Christian Posta wrote: > if

Re: CamelBlueprintTestSupport and URL Handler Service

2014-02-28 Thread cajun
I am having the same problem -- View this message in context: http://camel.465427.n5.nabble.com/CamelBlueprintTestSupport-and-URL-Handler-Service-tp5748113p5748133.html Sent from the Camel - Users mailing list archive at Nabble.com.

How to test Mina Server?

2014-02-28 Thread doug5791
I have mina set up to listen to a particular port like this: from("mina:tcp://0.0.0.0:8999?textline=true&sync=true").to(xxx); If I use an application like "SocketTester" I am able to connect to the instance of mina and send it messages in the form of strings and see a response of what was sent.

Re: How to test Mina Server?

2014-02-28 Thread Claus Ibsen
Hi See the unit tests of camel-mina itself to find examples https://github.com/apache/camel/tree/master/components/camel-mina On Sat, Mar 1, 2014 at 3:05 AM, doug5791 wrote: > I have mina set up to listen to a particular port like this: > from("mina:tcp://0.0.0.0:8999?textline=true&sync=true").t

JPAComponent starter example

2014-02-28 Thread imranrazakhan
Hi, I am new to ApacheCamel and working on example which will select records from table and display on console, following is what i tried from("jpa:LoanRequest?consumeDelete=false;consumer.namedQuery=selectLoanRequests&persistenceUnit=LoanServicePU") .to("stream:out"); but how i can get objects/

AW: How to copy files from one directory to another within the same ftp server.

2014-02-28 Thread jhm
I think in this way the data is transfered to the running Camel instance and back to the ftp-server. If I googled right [1] FTP itself supports renaming files (and with that moving to different directories). Camel does not support that, right? Jan [1] http://stackoverflow.com/questions/9461844/