Re: Populate message with BeanInvocation

2013-03-19 Thread Lars-Erik Helander
What I would like is really somthing similar to .bean(...) where the bean class and method name is specified to a processor/bean and after invocation of that processor the exchange message body is populated with the appropriate bean invocation. Very much like a camel proxy but expressing the met

Re: Routing an ObjectMessage in ActiveMQ

2013-03-19 Thread Matthieu Vincent
Thanks Christian for the hint, I'll have a look at it. I found a workaround yesterday, as server and client know entities I've switched my messages to BytesMessage and it did the trick. Regards, Matthieu 2013/3/18 Christian Müller > Try stream caching as described here: > http://camel.apache.

Re: Regarding File Transfer

2013-03-19 Thread Claus Ibsen
Hi If you are new to Camel I suggest you spend some time reading this article http://java.dzone.com/articles/open-source-integration-apache As well maybe some of the Camel introductions we have listed here http://camel.apache.org/articles.html And then learn a bit about the Enterprise Integratio

Camel-FTP component on cluster

2013-03-19 Thread yogu13
Hi, I would like to know if the camel-FTP component supports cluster? we have a requirement of downloading files kept at FTP location and processing these files once downloaded. List of Software's which are used in the application:- Camel - version 2.10.1 JDK - version 1.6.37 Server - Tomcat 7

Re: Camel-FTP component on cluster

2013-03-19 Thread Claus Ibsen
Hi This has been debated before about cluster Camel. Maybe you can search the forum and find some of these talks. You can use a route policy to control which route is master / slave etc http://camel.apache.org/routepolicy And use some different technologies for that such as quartz, hazelcast, zo

Re: Camel-FTP component on cluster

2013-03-19 Thread yogu13
Hi Claus, Can you let us know what do you mean by "Though an alternative is to use a shared idempotent repository that the ftp consumer can use. That is a bit special as the file/ftp consumer has this functionality built-in" As mentioned will try to search the discussion group as well on clustere

Re: Camel-FTP component on cluster

2013-03-19 Thread Claus Ibsen
On Tue, Mar 19, 2013 at 12:34 PM, yogu13 wrote: > Hi Claus, > > Can you let us know what do you mean by "Though an alternative is to use a > shared idempotent repository that the ftp consumer can use. That is a bit > special as the file/ftp consumer has this functionality built-in" > Yeah this al

Re: Simple expression in spring XML not work if it come in multiple xml line

2013-03-19 Thread Claus Ibsen
Hi What Camel version do you use? On Tue, Mar 19, 2013 at 12:51 PM, Darwish wrote: > Hi , > > if I have a simple expression like this (its auto formatted by my eclipse > xml editor) : > > ${property.p1} contains 'xyz' and > ${property.p2} contains 'false' > > > it won’t work ,si

camel http- to call https service does not import certificates automatically

2013-03-19 Thread preety somani
public void configureHttpClient(HttpClient arg0) { String keystoreFilename = "C:\\Users\\.keystore"; char[] password = "Password".toCharArray(); log.info("configureHttpClient"+arg0.getPort()); FileInputStre

Binding IN and OUT message using annotation

2013-03-19 Thread Gert Villemos
In an inOut route I would like to bind the IN and the OUT message to method parameters using annotations. Something like; public void foo(@body String inMessage, @X String outMessage) I cant find this in the annottation description. -- View this message in context: http://camel.465427.n5.nabb

Re: Binding IN and OUT message using annotation

2013-03-19 Thread Claus Ibsen
On Tue, Mar 19, 2013 at 2:02 PM, Gert Villemos wrote: > In an inOut route I would like to bind the IN and the OUT message to method > parameters using annotations. Something like; > > public void foo(@body String inMessage, @X String outMessage) > > I cant find this in the annottation description.

Re: Simple expression in spring XML not work if it come in multiple xml line

2013-03-19 Thread Darwish
Hi, camel version is : 2.10.1 - Othman Darwish ProgressSoft Corp. -- View this message in context: http://camel.465427.n5.nabble.com/Simple-expression-in-spring-XML-not-work-if-it-come-in-multiple-xml-line-tp5729408p5729421.html Sent from the Camel - Users mailing list archive at Nabble

Re: oracle.jms.AQjmsFactory and javax.sql.DataSource

2013-03-19 Thread jinaLu
I tried like this. In fuseEsb etc xml file I have config: In my blueprint xml I have: My ruoteBuilder has: from("direct:test") .to("oracleQueue:queue:AQ_Q") B

Re: Simple expression in spring XML not work if it come in multiple xml line

2013-03-19 Thread Claus Ibsen
On Tue, Mar 19, 2013 at 3:01 PM, Darwish wrote: > Hi, > > camel version is : 2.10.1 > Yeah we should add a single space when connecting the lines. Feel free to log a JIRA ticket http://camel.apache.org/support > > > > - > Othman Darwish > ProgressSoft Corp. > > -- > View this message in cont

Re: Simple expression in spring XML not work if it come in multiple xml line

2013-03-19 Thread Darwish
Thanks Claus , isseue created @ https://issues.apache.org/jira/browse/CAMEL-6179 - Othman Darwish ProgressSoft Corp. -- View this message in context: http://camel.465427.n5.nabble.com/Simple-expression-in-spring-XML-not-work-if-it-come-in-multiple-xml-line-tp5729408p5729426.html Sent fro

Camel SQL component - How configure sql component to doesn't try read the body?

2013-03-19 Thread Gardella juan
Hi, I have a route that is processing a file. So the body is an input stream. I want in some part of the route do two sequential operations. So I am using something like that: from("direct:foo").multicast().to( "sql:truncate table X", "direct:continue"); I

Unmarshal CSV but continue route with unaltered message

2013-03-19 Thread mdo
Hello, I'm looking for a solution for processing (CSV) files with this flow: * consume a list of CSV files (file:///incoming/) * unmarshal the CSV contents of each file and process it with a bean * if the processing was successful move the corresponding file to directory A * otherwise move it

Re: How to schedule FTP with quartz?

2013-03-19 Thread Chris Wolf
On Mon, Mar 18, 2013 at 4:57 PM, Pontus Ullgren wrote: > Hello Chris, > > On Mon, Mar 18, 2013 at 8:54 PM, Chris Wolf wrote: >> Claus, >> >> I have a few further questions about CronScheduledRoutePolicy. I >> noticed that it has setters such as setRouteStartTime, >> setRouteStopTime, each which

Re: camel http- to call https service does not import certificates automatically

2013-03-19 Thread santhosh
Your progam/code wont and its not coded that way.You have to update the keystore and truststore manually.Updating manually in sense i am assuming you mean keytool -import -keystore keystore.jks -file key.txt -alias xyz . -- View this message in context: http://camel.465427.n5.nabble.com/came

Camel receipient list with interceptor

2013-03-19 Thread santhosh
My architecture needs to multicast to multiple endpoints which will be constructed dynamically and before the message is sent to end point it needs to be customized.Now its like

Camel FTP is not consuming large files

2013-03-19 Thread akcameluser
Hi I have an OSGI Bundle deployed on ServiceMix. Currently it's consuming files from a remote FTP server up to 300 MB of size. If I drop a 500 MB file (zip file) it doesn't get picked up and I can't see anything on the log. I have also noticed that if I drop a small file while the big file is stil

Re: oracle.jms.AQjmsFactory and javax.sql.DataSource

2013-03-19 Thread Willem jiang
Hi, Did you have any Spring configuration which works? It looks like a configuration issue instead of camel issue. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.

Re: camel http- to call https service does not import certificates automatically

2013-03-19 Thread preety somani
Hi, can you tel me what I need to add to import the certificate automatically?Also, it hits the https service only when the certificate is manually imported to the java cacerts file and not my user defined keystore. Can you tel me what I am doing wrong Thanks, Preety -- View this message in

RE: camel http- to call https service does not import certificates automatically

2013-03-19 Thread Siano, Stephan
Hi, Why would you even want to import certificates automatically? This is absolutely not the way TLS/SSL (and the whole X.509 stuff) is supposed to work. Automatically importing SSL certificates will open up your communication to active (man-in-the-middle) attacks. What you probably want to do

Re: oracle.jms.AQjmsFactory and javax.sql.DataSource

2013-03-19 Thread jinaLu
If I don't use datasource and specify like this: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.10)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=mydb)))

sftp not throwing exception

2013-03-19 Thread sarfaraj
Hi, I am using the sftp component(2.8.5). When I passed wrong credential or invalid IP, it doesn't throws any exception. That is why I could not recognized is connection established or not. Could someone tell me how to throw exception in such case. FYI: the route is http://camel.apache.org/sche