You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by cjkent <cj...@hotmail.com> on 2009/04/09 17:10:14 UTC
Queue MBean lazily created, not registered until first message is
sent
I've noticed that the MBean for a queue I'm creating doesn't seem to get
registered until the first message is sent to it. This is causing me a
problem because I'm trying to use Spring's MBeanProxyFactoryBean to get a
proxy to the MBean at startup and pass it to one of my other beans. But
Spring throws an exception because it can't find the MBean. Is there a way
to force Queue MBeans to be eagerly created and registered when the Queue is
created?
Thanks
Chris
--
View this message in context: http://www.nabble.com/Queue-MBean-lazily-created%2C-not-registered-until-first-message-is-sent-tp22972957p22972957.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Queue MBean lazily created, not registered until first message is
sent
Posted by Gary Tully <ga...@gmail.com>.
Yea, Queues are created on demand and hence their MBeans. You can configure
startup destinations at the broker level
<http://activemq.apache.org/configure-startup-destinations.html>that should
help here.
2009/4/9 cjkent <cj...@hotmail.com>
>
> I've noticed that the MBean for a queue I'm creating doesn't seem to get
> registered until the first message is sent to it. This is causing me a
> problem because I'm trying to use Spring's MBeanProxyFactoryBean to get a
> proxy to the MBean at startup and pass it to one of my other beans. But
> Spring throws an exception because it can't find the MBean. Is there a way
> to force Queue MBeans to be eagerly created and registered when the Queue
> is
> created?
>
> Thanks
> Chris
>
> --
> View this message in context:
> http://www.nabble.com/Queue-MBean-lazily-created%2C-not-registered-until-first-message-is-sent-tp22972957p22972957.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
--
http://blog.garytully.com
Open Source SOA
http://FUSESource.com