How can I obtain port binding information at runtime? (JBoss 5.1)
问题 Basically what I want to do is to obtain the port number on which JBoss is listening for HTTP requests (the one that is normally 8080). I came upon this article, which sounds promising, but unfortunately some of the links are broken and I cannot figure out the part: ManagementView managementView = getManagementView(); // via JNDI lookup How could I implement getManagementView()? Or is there any other preferable way to do it? 回答1: If you are looking for a simpler interface, you might want to