activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Create Queue and sample messages in 4.x version
Date Thu, 27 Sep 2012 13:50:32 GMT
On Thu, Sep 27, 2012 at 3:31 PM, VJ_2523 <v.yeruva@gmail.com> wrote:
> Thanks for the response Claus.
>
> The reason why I am using 4.x version is because it is using the JDK 1.5
> version and I have an ETL application which is using JDK 1.5 on the other
> end which talks to the ActiveMQ JMS server to pool the messages from the
> queue.
>
> To begin with, I was using the latest version 5.6.0 of ActiveMQ and I
> created a sample Queue and also dropped few messages in the queue using the
> web based admin monitor console. But, when my ETL application is trying to
> communicate with the JMS server I am getting the below error( I suspected
> that the JDK version's are not compatible ).
>
> java.lang.UnsupportedClassVersionError: Bad version number in .class file
>
> Hence, I downgraded the JMS server to version 4.x because it is using JDK
> 1.5.

Yeah AMQ 5.5.x onwards requires Java6 or better.


> How ever, I could not create a queue on the JMS server to post the messages
> but when I was reading the ActiveMQ user guide,  it has some sample JAVA
> programs which are using a queue called "MyQueue".
>
> I did few changes on the  ETL application  to look for the messages inside
> the queue name "MyQueue" and it was able communicate successfully with the
> JMS server but there are no messages available to be processed on the JMS
> server inside the queue name "MyQueue".
>
> Can you please suggest me if I am missing some thing here or if there is any
> alternative way that I go for ?
>

Are you using persistance queues? if not then messages will only stay
on the queue, if
there is an active consumer.

Also mind that messages may have an expiry time. So the broker may
discard the message
if the message is "too old".

To make sure this wont happend make sure the clocks are almost in sync
with the broker and its clients.
If not there is a timestamp plugin you can apply to the broker. Check
the docs what it does.


> Thanks,
> Vijay
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Create-Queue-and-sample-messages-in-4-x-version-tp4657005p4657102.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



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

Mime
View raw message