0

I am running an application on a Jboss 6 server and using mbeans to start/stop my app without redeploying/restarting server. I was testing on JBoss 7 and saw that there were no mbean support.

How do I create that functionality now? I've yet to find anything on this.

Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
Erik Skoglund
  • 3,075
  • 1
  • 14
  • 12

2 Answers2

2

There is MBean support.

In what area do you experience problems: when deploying MBeans or accessing them, ...?

Rico
  • 91
  • 5
  • There is? I get an error when deploying the application. WstxParsingException: "Received event DTD, instead of START_ELEMENT or END_ELEMENT." the problem is in my jboss-service.xml where I define the bean. – Erik Skoglund Oct 04 '11 at 13:15
  • Ok, I removed the custom xml and tested it in the server config instead. Now I can deploy. But how do I reach the mbean interface without jxm-console? – Erik Skoglund Oct 04 '11 at 13:31
  • See this: http://community.jboss.org/thread/169408 which is also present in the thread Lukasz mentioned. In short: Use JConsole. – Rico Oct 04 '11 at 17:26
  • Yes, thanks. JConsole was just what I was looking for. Still getting the parse error obviously. But it's a start. – Erik Skoglund Oct 05 '11 at 07:48
  • I'm marking this as answer because it solved the original question. MBeans could be reached with JConsole. Strange this isn't at least recommended in the AS7 documentation. – Erik Skoglund Oct 05 '11 at 11:55
0

In the meantime (2015), there is a portation of the AS5 jmx-console, which can be deployed to AS7 and WildFly. See https://github.com/wildfly-extras/jmx-console

Rico
  • 91
  • 5