Hi,
is there any way to get the name of the jboss-server in jboss 3.2.3?
This way fails, but works with 4.0.5. I'm starting jboss with the all config, on deployment I get a ClassDefNotFoundException:MBeanServerConnection.
try { MBeanServerConnection server = (MBeanServerConnection) new InitialContext().lookup("jmx/rmi/RMIAdaptor"); ObjectName serverInfo = new ObjectName("jboss.system:type=ServerInfo"); hostName = (String) server.getAttribute(serverInfo, "HostName"); } catch (Exception e) { //... }