You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by ravish4596 <ra...@wipro.com> on 2013/10/16 12:52:24 UTC

failed to go activemq

Hi
I am trying to send the smooks transformed material to activemq but it is
showing error. Please resolve this error and tell me. Below are my
camel-context.xml. If i write file destination in place of activemq
destination, the data is sent to that folder. But in case of activemq, it
shows error.




<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" 
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xmlns:context="http://www.springframework.org/schema/context"
       xmlns:camel="http://camel.apache.org/schema/spring"
       xmlns:broker="http://activemq.apache.org/schema/core"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
       http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
       http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd">
	
		
	
	<camelContext id="camelContext"
xmlns="http://camel.apache.org/schema/spring">
		    <route>
			<from uri="file://${input.dir}?fileName=Trade.csv"/>
			<log message="Before SmooksComponent  ${body}"/>
			<to uri="smooks://smooks-config.xml"/>
			<log message="After SmooksComponent  ${body}"/>
			<convertBodyTo type="java.lang.String"/>
			<to uri="activemq:queue:input"/>
			</route>				
	</camelContext>
	
	<bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
		<property name="brokerURL" value="tcp://localhost:61616"/>
		</bean>
</beans>




--
View this message in context: http://camel.465427.n5.nabble.com/failed-to-go-activemq-tp5741651.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: failed to go activemq

Posted by Christian Mueller <ch...@gmail.com>.
Ravish4596,

can you please subscribe to the discussion forum in Nabble as we describe
here [1].
Otherwise all your mails has to be moderate manually by the Camel team so
that your post is also send to our mailing list which most of the Camel team
member are using instead of Nabble. Therefore your post is may
missed/delayed and you don't get an answer in the normal time frame we
answer questions.
Last but not least, it cost time which we cannot spend developing Camel,
answering questions or improving the documentation...

[1] http://camel.apache.org/discussion-forums.html

Thanks in advance,
Christian



--
View this message in context: http://camel.465427.n5.nabble.com/failed-to-go-activemq-tp5741651p5741658.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: failed to go activemq

Posted by Christian Müller <ch...@gmail.com>.
What kind of problem do you face?

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 Mon, Oct 21, 2013 at 7:25 AM, ravish4596 <ra...@wipro.com> wrote:

> I am working on maven and all paths are set already.
>
> When I transform content through smooks as mvn exec:java, it works
> successfully. And when i send the treansformed content to activemq trough
> other destination folder as mvn camel:run, it also works successfully.
> But, my problem is I want to combine both methods together that i can run
> smooks and activemq through a single destination folder in a common command
> prompt.
> For this, please give a solution.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/failed-to-go-activemq-tp5741651p5741948.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: failed to go activemq

Posted by ravish4596 <ra...@wipro.com>.
I am working on maven and all paths are set already.

When I transform content through smooks as mvn exec:java, it works
successfully. And when i send the treansformed content to activemq trough
other destination folder as mvn camel:run, it also works successfully.
But, my problem is I want to combine both methods together that i can run
smooks and activemq through a single destination folder in a common command
prompt.
For this, please give a solution.



--
View this message in context: http://camel.465427.n5.nabble.com/failed-to-go-activemq-tp5741651p5741948.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: failed to go activemq

Posted by Claus Ibsen <cl...@gmail.com>.
What error do you see? And what version of Camel do you use?

Also when you use Camel components then you need to add them to your classpath.

So maybe you have not done that.

If you use Maven that is easy. If not then you need to download the
JARs manually and add to your classpath.


On Wed, Oct 16, 2013 at 12:52 PM, ravish4596 <ra...@wipro.com> wrote:
> Hi
> I am trying to send the smooks transformed material to activemq but it is
> showing error. Please resolve this error and tell me. Below are my
> camel-context.xml. If i write file destination in place of activemq
> destination, the data is sent to that folder. But in case of activemq, it
> shows error.
>
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>            xmlns:context="http://www.springframework.org/schema/context"
>        xmlns:camel="http://camel.apache.org/schema/spring"
>        xmlns:broker="http://activemq.apache.org/schema/core"
>        xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>        http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd
>        http://www.springframework.org/schema/context
> http://www.springframework.org/schema/context/spring-context.xsd
>        http://activemq.apache.org/schema/core
> http://activemq.apache.org/schema/core/activemq-core.xsd">
>
>
>
>         <camelContext id="camelContext"
> xmlns="http://camel.apache.org/schema/spring">
>                     <route>
>                         <from uri="file://${input.dir}?fileName=Trade.csv"/>
>                         <log message="Before SmooksComponent  ${body}"/>
>                         <to uri="smooks://smooks-config.xml"/>
>                         <log message="After SmooksComponent  ${body}"/>
>                         <convertBodyTo type="java.lang.String"/>
>                         <to uri="activemq:queue:input"/>
>                         </route>
>         </camelContext>
>
>         <bean id="activemq"
> class="org.apache.activemq.camel.component.ActiveMQComponent">
>                 <property name="brokerURL" value="tcp://localhost:61616"/>
>                 </bean>
> </beans>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/failed-to-go-activemq-tp5741651.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen