You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "prabumca06@gmail.com" <pr...@gmail.com> on 2013/04/10 20:14:16 UTC

active mq 5.5 to 5.8 upgrade issue

Hi All,

  I am having web application to view messages in the messaging system which
is running in active-mg 5.5.

 Last week we have upgrade apache active-mq from 5.5 to 5.8.

 due to this upgrade,We can't view queues/messages in my web application.

 I am using apache-mq-all-5.8.jar api to connect messages system.

 Please suggest what are all changes do i need to do?.

Before,Queueviewbean object i can get getqueuesize().But afteractive-mq
upgrade from 5.5 to 5.8.

I can't getqueuesize it throwing exception 

Please kindly suggest what changes do i need to make.

My Aim:

1) Get list of queues and it size from messages system
2) get list messages in queue.
3) purge messages from queue
4) re-delivery message from queue.

I need to do all above using active-mq 5.8



 

  



--
View this message in context: http://activemq.2283324.n4.nabble.com/active-mq-5-5-to-5-8-upgrade-issue-tp4665828.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: active mq 5.5 to 5.8 upgrade issue

Posted by "prabumca06@gmail.com" <pr...@gmail.com>.
objectname value is 
~~~~~~~~~~~~

org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=DLQ.EventLogqueue

Java code
~~~~~~
QueueViewMBean mbean = JMX.newMBeanProxy(con, name,QueueViewMBean.class,
true);

when i do mbean.getQueueSize()

i am getting following error,Please kindly help me.

Caused by: javax.management.AttributeNotFoundException: No such attribute:
QueueSize
	at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:81)
	at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:204)
	at javax.management.StandardMBean.getAttribute(StandardMBean.java:372)
	at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:647)





--
View this message in context: http://activemq.2283324.n4.nabble.com/active-mq-5-5-to-5-8-upgrade-issue-tp4665828p4665857.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: active mq 5.5 to 5.8 upgrade issue

Posted by Timothy Bish <ta...@gmail.com>.
On 04/10/2013 02:14 PM, prabumca06@gmail.com wrote:
> Hi All,
>
>    I am having web application to view messages in the messaging system which
> is running in active-mg 5.5.
>
>   Last week we have upgrade apache active-mq from 5.5 to 5.8.
>
>   due to this upgrade,We can't view queues/messages in my web application.
>
>   I am using apache-mq-all-5.8.jar api to connect messages system.
>
>   Please suggest what are all changes do i need to do?.
>
> Before,Queueviewbean object i can get getqueuesize().But afteractive-mq
> upgrade from 5.5 to 5.8.
>
> I can't getqueuesize it throwing exception
>
> Please kindly suggest what changes do i need to make.
>
> My Aim:
>
> 1) Get list of queues and it size from messages system
> 2) get list messages in queue.
> 3) purge messages from queue
> 4) re-delivery message from queue.
>
> I need to do all above using active-mq 5.8
>
>
>
>   
>
>    
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/active-mq-5-5-to-5-8-upgrade-issue-tp4665828.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
You need to account for the fact that the MBean names have changed as 
documented on the release page and migration pages

http://activemq.apache.org/activemq-580-release.html
http://activemq.apache.org/58-migration-guide.html

-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/