You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by davsclaus <ci...@yahoo.dk> on 2011/04/30 11:29:06 UTC
Re: Error throwing ---Openmq configuration with Apache Camel
You need to add some JARs from OpenMQ which has the JMS client you need to
use to be able to send and receive message from OpenMQ.
-----Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/--
View this message in context: http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360857.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Error throwing ---Openmq configuration with Apache Camel
Posted by Claus Ibsen <cl...@gmail.com>.
Well you got to find the JAR which contains this class OpenMQConnectionFactory
And inclue that JAR on the classpath.
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: Error throwing ---Openmq configuration with Apache Camel
Posted by viswa <dw...@gmail.com>.
In STEP 6 you mean I also have to change the POM.xml to use the openmq
broker?
On Sat, Apr 30, 2011 at 3:59 PM, Claus Ibsen-2[via Camel] <
ml-node+4360924-835939797-150414@n5.nabble.com> wrote:
> Hi
>
> On Sat, Apr 30, 2011 at 12:25 PM, viswa <[hidden email]<http://user/SendEmail.jtp?type=node&node=4360924&i=0&by-user=t>>
> wrote:
>
> > Hello Claus Ibsen,
> > Just to give more impression of what I'm trying to do.
> > 1)Installed maven and its successful
> > 2)Dowloaded Apache camel and did the necessary steps
> > 2)I chose the example from the
> > camel-example-jms-file\src\main\java\org\apache\camel\example\jmstofile
> > 3)Ran with the existing embedded broker(Activemq)
> > 4)BUILD successful and created the messages in the file(as per expected
> > behaviour)
> > 5)Now trying to change the broker to OpenMQ
> > 6)I didnt change aynthing in POM.XML but only changed the file
> > CamelJmsToFileExample.java and in this java file my changes are
> > ConnectionFactory connectionFactory = new
> > OpenMQConnectionFactory("vm://localhost?broker.persistent=false");
> > 7)Ran the program from commandline.
> > 8)Throwing ERROR as above.
>
> In step 6 that's specific to the message broker you use. This is how
> to use ActiveMQ (which is easy).
> To use OpenMQ instead you have to read the documentation from OpenMQ
> how to use it as a JMS client.
> That information should have some JMS examples.
>
>
>
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360919.html<http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360919.html?by-user=t>
>
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: [hidden email]<http://user/SendEmail.jtp?type=node&node=4360924&i=1&by-user=t>
> Web: http://fusesource.com
> CamelOne 2011: http://fusesource.com/camelone2011/
> Twitter: davsclaus
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360924.html
> To unsubscribe from Error throwing ---Openmq configuration with Apache
> Camel, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4360764&code=ZHdodmlzd2FAZ21haWwuY29tfDQzNjA3NjR8MTk5NTUxMjk1MA==>.
>
>
--
View this message in context: http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360928.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Error throwing ---Openmq configuration with Apache Camel
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
On Sat, Apr 30, 2011 at 12:25 PM, viswa <dw...@gmail.com> wrote:
> Hello Claus Ibsen,
> Just to give more impression of what I'm trying to do.
> 1)Installed maven and its successful
> 2)Dowloaded Apache camel and did the necessary steps
> 2)I chose the example from the
> camel-example-jms-file\src\main\java\org\apache\camel\example\jmstofile
> 3)Ran with the existing embedded broker(Activemq)
> 4)BUILD successful and created the messages in the file(as per expected
> behaviour)
> 5)Now trying to change the broker to OpenMQ
> 6)I didnt change aynthing in POM.XML but only changed the file
> CamelJmsToFileExample.java and in this java file my changes are
> ConnectionFactory connectionFactory = new
> OpenMQConnectionFactory("vm://localhost?broker.persistent=false");
> 7)Ran the program from commandline.
> 8)Throwing ERROR as above.
In step 6 that's specific to the message broker you use. This is how
to use ActiveMQ (which is easy).
To use OpenMQ instead you have to read the documentation from OpenMQ
how to use it as a JMS client.
That information should have some JMS examples.
> --
> View this message in context: http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360919.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: Error throwing ---Openmq configuration with Apache Camel
Posted by viswa <dw...@gmail.com>.
Hello Claus Ibsen,
Just to give more impression of what I'm trying to do.
1)Installed maven and its successful
2)Dowloaded Apache camel and did the necessary steps
2)I chose the example from the
camel-example-jms-file\src\main\java\org\apache\camel\example\jmstofile
3)Ran with the existing embedded broker(Activemq)
4)BUILD successful and created the messages in the file(as per expected
behaviour)
5)Now trying to change the broker to OpenMQ
6)I didnt change aynthing in POM.XML but only changed the file
CamelJmsToFileExample.java and in this java file my changes are
ConnectionFactory connectionFactory = new
OpenMQConnectionFactory("vm://localhost?broker.persistent=false");
7)Ran the program from commandline.
8)Throwing ERROR as above.
--
View this message in context: http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360919.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Error throwing ---Openmq configuration with Apache Camel
Posted by viswa <dw...@gmail.com>.
Hello Claus Ibsen,
I checked my CLASSPATH and the JAR's are included are *C:\Program
Files\Sun\MessageQueue\mq\lib\jms.jar;C:\Program
Files\Sun\MessageQueue\mq\lib\imq.jar*
I start the test from commandline.
Let me know if something wrong in my steps.
Regards
Viswa
On Sat, Apr 30, 2011 at 3:24 PM, Claus Ibsen-2[via Camel] <
ml-node+4360882-339440211-150414@n5.nabble.com> wrote:
> On Sat, Apr 30, 2011 at 11:48 AM, viswa <[hidden email]<http://user/SendEmail.jtp?type=node&node=4360882&i=0&by-user=t>>
> wrote:
> > Hello Claus Ibsen,
> > Could you please be specific about the JAR's to add and where should I
> add
> > these JAR's.
> > Just fyi: In my system, have the following JAR's under the lib
> > folder.*'imq.jar,imqadmin.jar
> > and imqbroker.jar'*
> >
>
> You need to include those JARs on the classpath to Java so when it
> starts your application, those JARs is included.
>
> How do you start the test?
> From a command line, or from a Java editor such as eclipse, or how?
>
>
>
> > Regards
> > Viswa
> >
> > On Sat, Apr 30, 2011 at 2:59 PM, davsclaus[via Camel] <
> > [hidden email]<http://user/SendEmail.jtp?type=node&node=4360882&i=1&by-user=t>>
> wrote:
> >
> >> You need to add some JARs from OpenMQ which has the JMS client you need
> to
> >> use to be able to send and receive message from OpenMQ.
> >>
> >> Claus Ibsen
> >> -----------------
> >> FuseSource
> >> Email: [hidden email]<http://user/SendEmail.jtp?type=node&node=4360882&i=2&by-user=t>
> >> Web: http://fusesource.com
> >> Twitter: davsclaus
> >> Blog: http://davsclaus.blogspot.com/
> >> Author of Camel in Action: http://www.manning.com/ibsen/
> >>
> >>
> >> ------------------------------
> >> If you reply to this email, your message will be added to the
> discussion
> >> below:
> >>
> >>
> http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360857.html<http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360857.html?by-user=t>
> >> To unsubscribe from Error throwing ---Openmq configuration with Apache
> >> Camel, click here<
>
> >>
> >>
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360877.html<http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360877.html?by-user=t>
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: [hidden email]<http://user/SendEmail.jtp?type=node&node=4360882&i=3&by-user=t>
> Web: http://fusesource.com
> CamelOne 2011: http://fusesource.com/camelone2011/
>
> Twitter: davsclaus
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360882.html
> To unsubscribe from Error throwing ---Openmq configuration with Apache
> Camel, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4360764&code=ZHdodmlzd2FAZ21haWwuY29tfDQzNjA3NjR8MTk5NTUxMjk1MA==>.
>
>
--
View this message in context: http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360893.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Error throwing ---Openmq configuration with Apache Camel
Posted by Claus Ibsen <cl...@gmail.com>.
On Sat, Apr 30, 2011 at 11:48 AM, viswa <dw...@gmail.com> wrote:
> Hello Claus Ibsen,
> Could you please be specific about the JAR's to add and where should I add
> these JAR's.
> Just fyi: In my system, have the following JAR's under the lib
> folder.*'imq.jar,imqadmin.jar
> and imqbroker.jar'*
>
You need to include those JARs on the classpath to Java so when it
starts your application, those JARs is included.
How do you start the test?
>From a command line, or from a Java editor such as eclipse, or how?
> Regards
> Viswa
>
> On Sat, Apr 30, 2011 at 2:59 PM, davsclaus[via Camel] <
> ml-node+4360857-1601837032-150414@n5.nabble.com> wrote:
>
>> You need to add some JARs from OpenMQ which has the JMS client you need to
>> use to be able to send and receive message from OpenMQ.
>>
>> Claus Ibsen
>> -----------------
>> FuseSource
>> Email: cibsen@fusesource.com
>> Web: http://fusesource.com
>> Twitter: davsclaus
>> Blog: http://davsclaus.blogspot.com/
>> Author of Camel in Action: http://www.manning.com/ibsen/
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360857.html
>> To unsubscribe from Error throwing ---Openmq configuration with Apache
>> Camel, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4360764&code=ZHdodmlzd2FAZ21haWwuY29tfDQzNjA3NjR8MTk5NTUxMjk1MA==>.
>>
>>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360877.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: Error throwing ---Openmq configuration with Apache Camel
Posted by viswa <dw...@gmail.com>.
Hello Claus Ibsen,
Could you please be specific about the JAR's to add and where should I add
these JAR's.
Just fyi: In my system, have the following JAR's under the lib
folder.*'imq.jar,imqadmin.jar
and imqbroker.jar'*
Regards
Viswa
On Sat, Apr 30, 2011 at 2:59 PM, davsclaus[via Camel] <
ml-node+4360857-1601837032-150414@n5.nabble.com> wrote:
> You need to add some JARs from OpenMQ which has the JMS client you need to
> use to be able to send and receive message from OpenMQ.
>
> Claus Ibsen
> -----------------
> FuseSource
> Email: cibsen@fusesource.com
> Web: http://fusesource.com
> Twitter: davsclaus
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360857.html
> To unsubscribe from Error throwing ---Openmq configuration with Apache
> Camel, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4360764&code=ZHdodmlzd2FAZ21haWwuY29tfDQzNjA3NjR8MTk5NTUxMjk1MA==>.
>
>
--
View this message in context: http://camel.465427.n5.nabble.com/Error-throwing-Openmq-configuration-with-Apache-Camel-tp4360764p4360877.html
Sent from the Camel - Users mailing list archive at Nabble.com.