Hi Willem, I test it but it doesn't work. :(. I took the same exception. What is the problem? I checked for another httpclient.jar but there is not. You can control my pom.xml for dependencies. I made a new project to test http componenet. There isn't other camel componenet. My pom.xml is : /**************************************************/ <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>aero.tav.ib.camelweb</groupId> <artifactId>com.test.http</artifactId> <packaging>jar</packaging> <version>0.0.1-SNAPSHOT</version> <name>A Camel Route</name> <url>http://www.myorganization.org</url> <dependencies> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-core</artifactId> <version>2.9.0-RC1</version> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-spring</artifactId> <version>2.9.0-RC1</version> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId> <version>2.9.0-RC1</version> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-jms</artifactId> <version>2.9.0-RC1</version> </dependency> <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-core</artifactId> <version>5.5.1</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.6.1</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.6.1</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.16</version> </dependency> </dependencies> <build> <defaultGoal>install</defaultGoal> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <groupId>org.apache.camel</groupId> <artifactId>camel-maven-plugin</artifactId> <version>2.9.0-RC1</version> </plugin> </plugins> </build> </project> /***********************************************************/ And my main class : package aero.tav.ib.camelweb.com.test.http; import static org.apache.camel.component.jms.JmsComponent.jmsComponentClientAcknowledge; import javax.jms.ConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.camel.CamelContext; import org.apache.camel.Exchange; import org.apache.camel.Processor; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.impl.DefaultCamelContext; public class ApplicationTest { public static void main(String[] args) { CamelContext camelContext = null; try{ camelContext = new DefaultCamelContext(); ConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://localhost:61616"); camelContext.addComponent("jms", jmsComponentClientAcknowledge(connectionFactory)); camelContext.addRoutes(new RouteBuilder() { @Override public void configure() throws Exception { from("timer://foo?fixedRate=true&delay=0&period=10000") .to("http://tcmb.gov.tr/kurlar/today.xml").process(new Processor() { @Override public void process(Exchange arg0) throws Exception { System.out.println(arg0.getIn()); } }); } }); camelContext.getShutdownStrategy().setTimeout(10); // start the route and let it do its work camelContext.start(); Thread.sleep(20*1000); // stop the CamelContext camelContext.stop(); }catch(Exception ex){ ex.printStackTrace(); } } } -- View this message in context: http://camel.465427.n5.nabble.com/How-can-I-catch-a-response-http-component-tp5076707p5079444.html Sent from the Camel - Users mailing list archive at Nabble.com.
