Changeset 6048
- Timestamp:
- 11/14/11 11:48:28 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/pustefix-core/src/main/java/org/pustefixframework/http/PustefixInternalsRequestHandler.java
r5929 r6048 422 422 } 423 423 MBeanServer mbeanServer = ManagementFactory.getPlatformMBeanServer(); 424 boolean checkLiveClasses = mbeanServer.isRegistered(name); 424 425 String[] signature = new String[] {"java.lang.String"}; 425 426 … … 439 440 int ind = jarPath.lastIndexOf('!'); 440 441 if(ind > -1) jarPath = jarPath.substring(0, ind); 441 String result = (String)mbeanServer.invoke(name, "getLiveLocation", new Object[] {jarPath}, signature); 442 if(result != null) elem.setAttribute("classurl", result); 442 if(checkLiveClasses) { 443 String result = (String)mbeanServer.invoke(name, "getLiveLocation", new Object[] {jarPath}, signature); 444 if(result != null) elem.setAttribute("classurl", result); 445 } 443 446 } catch(Exception x) { 444 447 LOG.warn("Error while getting live location", x);
