activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neek <>
Subject Re: Starting WebConsole .war in embedded Jetty and vm:// broker.. JNDI config?
Date Wed, 25 May 2011 15:31:40 GMT
On 05/25/2011 06:15 PM, Dejan Bosanac [via ActiveMQ] wrote:
> For a web console, you need jmx url as well

Appreciate your response :) just a quick report...

On a whim, I tried JConsole, and was surprised to find the queues are 
visible via the MBeans panel.  I had thought JConsole was the same as 
VisualVM which ships with the JDK, which didn't offer me any ActiveMQ 
inspection tools that I could see.  It's not the same, and I can now 
inspect my ActiveMQ without the web console.  I now see that I've 
misconfigured something, because there's both a 'testqueue' and a 
'myapp.testqueue', one of which is full of messages but 0 Consumers, and 
the other 1 Consumer but no messages.  This is the root problem I needed 
to solve when I started trying to use webconsole to inspect ActiveMQ's 
internals.  I'll debug how I've screwed this up tomorrow (probably by 
blindly following the JNDI setup docs without understanding how to refer 
to my queues by name).

> Something like this should work
> -Dwebconsole.jmx.url=service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> -Dwebconsole.jmx.user=""
> -Dwebconsole.jmx.password=""

Adding those does lead to some progress.  No longer a 
NullPointerException, trying /webconsole now gives:

javax.el.ELException: java.lang.RuntimeException: 
Failed to retrieve RMIServer stub: 
javax.naming.ServiceUnavailableException [
Root exception is java.rmi.ConnectException: Connection refused to host: 
localhost; nested exception is: Connection refused]
         at javax.el.BeanELResolver.getValue(
         at com.sun.el.parser.AstValue.getValue(
[cut several layers of nested exceptions]

I presume that nothing's listening on port 1099.  I'll investigate more 


View this message in context:
Sent from the ActiveMQ - User mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message