Spring documentation say that when you use the @EnableWebSocketMessageBroker annotation, one bean of type WebSocketMessageBrokerStats es created. This bean can be exported to JMX through Spring’s MBeanExporter for viewing at runtime, for example through JDK’s jconsole (or VisualVM). I don't know how create the Mbean.Spring documentation say that when you use the