try {
if (type.equals("ears")) {
String pattern
= "resin:type=EApp,Host=" + host + ",name=" + name;
EAppMXBean ear = (EAppMXBean) Jmx.findGlobal(pattern);
if (ear != null) {
ear.update();
// state = ear.getState();
errorMessage = ear.getErrorMessage();
return errorMessage;
}
else
return L.l("'{0}' is an unknown ear", tag);