You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by keith doyle <wa...@gmail.com> on 2010/04/15 17:04:25 UTC

Why doesn't a vm://localhost broker appear in the admin web console?

Using spring and activemq I can create a queue like so:

<amq:connectionFactory id="amqConnectionFactory" brokerURL="vm://localhost" 
/>

For senders and listeners this works fine but you don't see the any details
being listed in the admin web console which I would do if i changed the
broker to tcp://127.0.0.1:61616 ....

Is there any reason for this? or to put it another way how can I monitor the
activity on this queue?

Much thanks!
Keith
-- 
View this message in context: http://old.nabble.com/Why-doesn%27t-a-vm%3A--localhost-broker-appear-in-the-admin-web-console--tp28256493p28256493.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Why doesn't a vm://localhost broker appear in the admin web console?

Posted by iocanel <ca...@upstreamsystems.com>.

keith doyle wrote:
> 
> For senders and listeners this works fine but you don't see the any
> details being listed in the admin web console which I would do if i
> changed the broker to tcp://127.0.0.1:61616 ....
> 

Hi Keith, keep in mind that when using vm transport if the broker is not
found a new one is created. If your web console can't find the broker vm it
will create its own broker.

How can it not find it?
Mostly due to class loader reasons.

An easy way to avoid this from happening is to append the parameter
create=false in the connection url (e.g. vm://localhost?create=false). If it
still can find the broker you will have to troubleshoot the classloading
issue.




-----
Ioannis Canellos
-- 
View this message in context: http://old.nabble.com/Why-doesn%27t-a-vm%3A--localhost-broker-appear-in-the-admin-web-console--tp28256493p28258435.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Why doesn't a vm://localhost broker appear in the admin web console?

Posted by keith doyle <wa...@gmail.com>.
Hi Dejan,
Thank you so much for taking time out to reply, I'm not really sure how to
do this (excuse my stupidity) but in my activemq.conf I have a broker
"localhost"

<broker xmlns="http://activemq.apache.org/schema/core"
brokerName="localhost" dataDirectory="${activemq.base}/data">
   
   <kahaDB directory="${activemq.base}/data/kahadb"/>
      :
      :


In my spring config I have specified the broker like so:


	<amq:connectionFactory id="amqConnectionFactory" brokerURL="vm://localhost"
/>	
	<bean id="connectionFactory"
class="org.springframework.jms.connection.CachingConnectionFactory">
    	<constructor-arg ref="amqConnectionFactory" />
    	<property name="exceptionListener" ref="jmsExceptionListener" />
    	<property name="sessionCacheSize" value="40" />
	</bean>


 etc...

I would have assumed that while both processes are not running in the same
vm that the messages are being sent to /data/kahadb and that there would be
someway to monitor activity based on this?


Anyway would be grateful if it were possible to post an example (or link) to
some config which does this?

Thanks again!
Keith



-- 
View this message in context: http://old.nabble.com/Why-doesn%27t-a-vm%3A--localhost-broker-appear-in-the-admin-web-console--tp28256493p28257439.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Why doesn't a vm://localhost broker appear in the admin web console?

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi Keith,

that's because your web console is probably in other VM. You'd need to embed
into the application where the embedded broker is used, and then you should
be able to monitor it.

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Thu, Apr 15, 2010 at 5:04 PM, keith doyle <wa...@gmail.com> wrote:

>
> Using spring and activemq I can create a queue like so:
>
> <amq:connectionFactory id="amqConnectionFactory" brokerURL="vm://localhost"
> />
>
> For senders and listeners this works fine but you don't see the any details
> being listed in the admin web console which I would do if i changed the
> broker to tcp://127.0.0.1:61616 ....
>
> Is there any reason for this? or to put it another way how can I monitor
> the
> activity on this queue?
>
> Much thanks!
> Keith
> --
> View this message in context:
> http://old.nabble.com/Why-doesn%27t-a-vm%3A--localhost-broker-appear-in-the-admin-web-console--tp28256493p28256493.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>