Re: Dependency mess with camel-restlet

2014-03-12 Thread Willem Jiang
Hi,  As camel can be deployed into lots container and it can run as stand alone server, so we cannot change the dependency as you want.  With help of the dependency exclusion, you can resolve the issue in your pom. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemji

Re: How to consume a Rest Web Service passing through a proxy server

2014-03-12 Thread Aki Yoshida
If you are using the cxf component, you will need to configure the client setting in the cxf component. Here is the link: https://cxf.apache.org/docs/client-http-transport-including-ssl-support.html#ClientHTTPTransport(includingSSLsupport)-Theclientelement regards, aki 2014-03-12 20:02 GMT+01:00

Re: getOriginalMessage()

2014-03-12 Thread Bengt Rodehav
Found a workaround by accessing the type converter registry as follows: Object body = originalMessage.getBody(); TypeConverterRegistry reg = getContext().getTypeConverterRegistry(); TypeConverter converter = reg.lookup(String.class,body.getClass()); if (converter != null) { String str = converte

Http Client for Rest

2014-03-12 Thread imranrazakhan
Hi, I have done following code and i am not getting any exception neither request is working My Route from("timer://foo?delay=0&period=2") .doTry() .process(new SendSmsRequest()) .to("http://x.x.x.x:5001/rest/sms/me

Re: getOriginalMessage()

2014-03-12 Thread Bengt Rodehav
BTW, while debugging I noticed another difference between the current message (retrieved by the getIn() method) and the original message. When comparing the message headers, the original message lacks the header "breadcrumbId". This probably isn't related but it seems strange that it is omitted. N

Re: getOriginalMessage()

2014-03-12 Thread Bengt Rodehav
I've now done some debugging to see what actually happens. It turns out that both the variable "message" and the variable "originalMessage" are of type GenericFileMessage. It turns out that the "message" has an exchange set to its "exchange" property while the "originalMessage" does not (i e origin

How to consume a Rest Web Service passing through a proxy server

2014-03-12 Thread Fernando Cesar da Silva
Hi, I'm using CXFRS Component to consume a Rest Web Service and everything is working fine so far. Now I have to make the connection go through a proxy server. Using the HTTP Component, I have explicitly set the proxy in CamelContext and the connection reach the proxy as expected, but the C

Dependency mess with camel-restlet

2014-03-12 Thread Knut-Håvard Aksnes
I am using camel-restlet (2.12.3) in a war project and just discovered that the dependencies doesn't look good. There are at least two problems. 1) With a webapp we need to add a dependency to org.restlet.ext.spring as documented in camel-restlet. The problem being that the documentation specifies

Re: getOriginalMessage()

2014-03-12 Thread Bengt Rodehav
I did the following: - Downloaded the zip file for Camel 2.12.3 (binary distribution) - Added two java files to the example project "camel-example-ftp". The files are called MyFileClient.java and MyFileClientRouteBuilder.java. Their contents is embedded at the end of this mail. - I started MyFil

Re: camel-dropbox

2014-03-12 Thread hifly81
Hi, modification done, now you have a default profile with no integration test. Ciao! hekonsek wrote > Hi Giovani, > > Tests in your camel-dropbox modules are failing with the following error: > > org.apache.camel.component.dropbox.util.DropboxException: /XXX does > not exist or can't obtain

RE: camel-rabbitmq autoack=false

2014-03-12 Thread John H. Clark
Willem, I updated to 2.12.3, and still have the same problem. I believe there is a bug in the code, it camel-rabbitmq-2.12.3.jar, RabbitMQConsumer.class, line 126: if (!consumer.endpoint.isAutoAck()) { log.trace("Acknowledging receipt [delivery_tag={}]", de

Re: doneFileName with dynamic filename

2014-03-12 Thread Claus Ibsen
Hi Have you read the docs at http://camel.apache.org/file2 There is some examples with dynamic done file names. On Wed, Mar 12, 2014 at 4:59 PM, Jey350 wrote: > Hello, > > I'm using Camel 2.10 and I have the following problem: > > I need to make a XML route which use doneFileName with "dynamic

doneFileName with dynamic filename

2014-03-12 Thread Jey350
Hello, I'm using Camel 2.10 and I have the following problem: I need to make a XML route which use doneFileName with "dynamic filename". To be more precise, in a folder I have: ACKXXX-filename1 (doneFile) filename1 (file to process) ACKYYY-filename2 (doneFile) filename2 (file to process) Since "

Detected end of multiple routes

2014-03-12 Thread iceman
Hi, I'm looking for the best practice to detect the end of parallel routes. Here's the process : The Route A post new messages in the other routes. I must detect the end of all routes to know that my process is ended. How

Re: getOriginalMessage()

2014-03-12 Thread Bengt Rodehav
Thanks for your reply Claus. I changed my code to: from("file:in").streamcaching().process(new Processor() { public void process(Exchange theExchange) { Message originalMessage = theExchange.getUnitOfWork().getOriginalInMessage(); System.out.println(originalMessage); // 1 System.out.print

Re: getOriginalMessage()

2014-03-12 Thread Claus Ibsen
Hi No its streams playing tricks on you http://camel.apache.org/why-is-my-message-body-empty.html So you get the body 2 times (at #2 and #3) and the 2nd time its empty. On Wed, Mar 12, 2014 at 4:29 PM, Bengt Rodehav wrote: > I'm using Camel 2.12.1. > > For error handling purposes I need access

getOriginalMessage()

2014-03-12 Thread Bengt Rodehav
I'm using Camel 2.12.1. For error handling purposes I need access to the original message but I'm having problems with that. In my error handler I do this: Message originalMessage = theExchange.getUnitOfWork().getOriginalInMessage(); System.out.println(originalMessage); // 1 System.out.pri

Re: camel-dropbox

2014-03-12 Thread hifly81
ok, I will classify these test as integration tests and enable them only via profile. Thanks, Giovanni hekonsek wrote > Hi Giovani, > > Tests in your camel-dropbox modules are failing with the following error: > > org.apache.camel.component.dropbox.util.DropboxException: /XXX does > not exist

Re: camel-dropbox

2014-03-12 Thread Henryk Konsek
Hi Giovani, Tests in your camel-dropbox modules are failing with the following error: org.apache.camel.component.dropbox.util.DropboxException: /XXX does not exist or can't obtain metadata Keep in mind that we should be able to 'mvn install' your component without prior configuration of the Drop

Re: JMS Consumer Transaction problem

2014-03-12 Thread Charlie Mordant
Hi, What about putting the consumer or the method that produces the message out of the transaction? Otherwise, I think that you can retrieve the instance of the current usertransaction/transactionmanager and see if the transaction is always active. Charlie, 2014-03-12 11:18 GMT+01:00 Jose : >

JMS Consumer Transaction problem

2014-03-12 Thread Jose
Hi, I have a route that invokes a bean that persists a message in the DB and, afterwards, sends the message to a JMS queue. All of this happens within the same transaction. Apart from this, I have defined a JMS consumer to consume messages from the JMS queue and retrieve the previous message fro

Re: Class [org.apache.camel.spring.handler.CamelNamespaceHandler] for namespace [http://camel.apache.org/schema/spring] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler]

2014-03-12 Thread ramana
came-2.12.2 using spring-3.2.4 ... this version related jars i kept in tomcat lib . -- View this message in context: http://camel.465427.n5.nabble.com/Class-org-apache-camel-spring-handler-CamelNamespaceHandler-for-namespace-http-camel-apache-org-schee-tp5748634p5748673.html Sent f

Re: Class [org.apache.camel.spring.handler.CamelNamespaceHandler] for namespace [http://camel.apache.org/schema/spring] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler]

2014-03-12 Thread ramana
same exception repeating again... how to resolve this problem... -- View this message in context: http://camel.465427.n5.nabble.com/Class-org-apache-camel-spring-handler-CamelNamespaceHandler-for-namespace-http-camel-apache-org-schee-tp5748634p5748672.html Sent from the Camel - Use

Re: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/config/applicationContext.xml]; nested exception is java.lang.NullPointerException

2014-03-12 Thread ramana
but same error is coming again -- View this message in context: http://camel.465427.n5.nabble.com/Unexpected-exception-parsing-XML-document-from-ServletContext-resource-WEB-INF-config-applicationConn-tp5721144p5748671.html Sent from the Camel - Users mailing list archive at Nab