servicemix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <cmoulli...@gmail.com>
Subject Re: Accessing stats on ActiveMQ in Latest ServiceMix 4 (FUSE ESB 4.1 RC1)
Date Fri, 08 Jan 2010 10:18:34 GMT
Hi Scott,

You can deploy the ActiveMq console very easily on SMX4. Here is the step by
step process :

1) Install required bundles

a) PAX URL WAR extension used to deploy a WAR file top of SMX4
osgi:install -s mvn:org.ops4j.pax.url/pax-url-war/1.1.2

b) PAX Web bundles required for OSGI WebContainer
osgi:install -s mvn:org.ops4j.pax.web/pax-web-api/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-spi/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-runtime/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-jetty/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-jsp/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-extender-war/0.7.1
osgi:install -s mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/0.7.1

2) Install the ActiveMq WAR file
osgi:install -s
war:mvn:org.apache.activemq/activemq-web-console/5.3.0/war?Webapp-Context=activemqweb&Bundle-Classpath=.,WEB-INF/tags/for
m,WEB-INF/tags/jms

More info about that can be find on my blog :
http://cmoulliard.blogspot.com/2009/03/trick-to-customize-war-deployment-on.html

3) Connect to the browser through the Browser
http://localhost:8181/activemqweb

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com
twitter : http://twitter.com/cmoulliard
Linkedlin : http://www.linkedin.com/in/charlesmoulliard

Apache Camel Group :
http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm


On Thu, Jan 7, 2010 at 7:38 PM, Scott Parkerson
<scott.parkerson@gmail.com>wrote:

> Greetings, all.
>
> I tried checking the stats on the embedded ActiveMQ in the latest
> ServiceMix 4, and I'm getting odd responses back from activemq:query:
>
> karaf@root> activemq:query
> null
> karaf@root> activemq:query -QTopic=* --view EnqueueCount,DequeueCount
> Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> ERROR: java.lang.RuntimeException: Failed to execute query task.
> Reason: java.io.IOException: Failed to retrieve RMIServer stub:
> javax.naming.NameNotFoundException: jmxrmi
> java.lang.RuntimeException: Failed to execute query task. Reason:
> java.io.IOException: Failed to retrieve RMIServer stub:
> javax.naming.NameNotFoundException: jmxrmi
>        at
> org.apache.activemq.console.command.QueryCommand.runTask(QueryCommand.java:120)
>        at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>        at
> org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:292)
>        at
> org.apache.servicemix.activemq.commands.ActiveMQCommandSupport.doExecute(ActiveMQCommandSupport.java:48)
>        at
> org.apache.felix.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:41)
>        at
> org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:34)
>        at
> org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:45)
>        at
> org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:211)
>        at
> org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:146)
>        at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:91)
>        at
> org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:75)
>        at
> org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)
>        at
> org.apache.felix.karaf.shell.console.jline.Console.run(Console.java:174)
>        at java.lang.Thread.run(Thread.java:619)
> java.io.IOException: Failed to retrieve RMIServer stub:
> javax.naming.NameNotFoundException: jmxrmi
>
> Not sure what is wrong, other than (perhaps) the RMI stuff is busted.
>
> Also, isn't there supposed to be a web console for ActiveMQ in the
> latest ServiceMix (as well as a web console for ServiceMix in
> general)? Not sure where I heard that from.
>
> --sgp
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message