From: <tk...@hy...> - 2008-06-25 02:09:02
|
Author: tkeeney Date: 2008-06-24 19:08:56 -0700 (Tue, 24 Jun 2008) New Revision: 9874 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=9874 Modified: trunk/src/org/hyperic/hq/livedata/server/session/LiveDataManagerEJBImpl.java Log: Return a LiveDataResult wrapping any AgentRemoteException thrown by live exec getData(). Modified: trunk/src/org/hyperic/hq/livedata/server/session/LiveDataManagerEJBImpl.java =================================================================== --- trunk/src/org/hyperic/hq/livedata/server/session/LiveDataManagerEJBImpl.java 2008-06-24 22:45:30 UTC (rev 9873) +++ trunk/src/org/hyperic/hq/livedata/server/session/LiveDataManagerEJBImpl.java 2008-06-25 02:08:56 UTC (rev 9874) @@ -40,7 +40,6 @@ import org.hyperic.hq.appdef.shared.AppdefEntityNotFoundException; import org.hyperic.hq.appdef.shared.ConfigManagerLocal; import org.hyperic.hq.appdef.shared.AppdefEntityValue; -import org.hyperic.hq.appdef.shared.AppdefResourceTypeValue; import org.hyperic.hq.appdef.shared.ConfigFetchException; import org.hyperic.hq.appdef.server.session.AppdefResourceType; import org.hyperic.hq.appdef.server.session.ConfigManagerEJBImpl; @@ -239,8 +238,8 @@ try { res = client.getData(id, type, cmd.getCommand(), config); - } catch(AgentRemoteException e) { - throw new LiveDataException("Exception executing liveData", e); + } catch (AgentRemoteException e) { + res = new LiveDataResult(id, e, e.getMessage()); } if (cacheTimeout != NO_CACHE) { |