Active MQ and HttpClient
I am very new to using Apache Camel and ActiveMQ. I need to feed the
ActiveMQ JMS broker with tweets using Streaming API. the broker URL is an
HTTPURL and is configured in the camel-config XMk file as
<!-- Configure JMSConnectionFactory -->
<bean id="jmsConnectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
<!-- property name="brokerURL" value="vm://localhost" / -->
<property name="brokerURL" value="http://myabc:61616" />
<!-- property name="userName" value="smx"/-->
<!-- property name="password" value="smx"/-->
</bean>
<bean id="pooledConnectionFactory"
class="org.apache.activemq.pool.PooledConnectionFactory">
<property name="maxConnections" value="8" />
<property name="maximumActive" value="500" />
<property name="connectionFactory"
ref="jmsConnectionFactory" />
</bean>
<bean id="jmsConfig"
class="org.apache.camel.component.jms.JmsConfiguration">
<property name="connectionFactory"
ref="pooledConnectionFactory" />
<property name="transacted" value="false" />
<!-- property name="concurrentConsumers" value="10"/-->
</bean>
<!-- configure the Camel ActiveMQ -->
<bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="configuration" ref="jmsConfig" />
</bean>
I have added HttpClient and HttpCore JARs to the classpath, but am still
getting this error. Could you please suggest how I can resolve this. I
will really appreciate it.
Caused by: java.lang.NoSuchMethodError:
org.apache.activemq.transport.http.HttpTransportFactory.getOption(Ljava/util/Map;Ljava
/lang/String;Ljava/lang/String;)Ljava/lang/String;
Thank you!! Christie
No comments:
Post a Comment