Esempio n. 1
0
 /**
  * @param serviceKey String
  * @param runType int
  * @param paramObject JParamObject
  * @param dataObject Object
  * @param customObject Object
  * @param addinObject Object
  * @return JResponseObject
  * @throws Exception
  */
 public static JResponseObject runEnterpriseService(
     String serviceKey,
     int runType,
     JParamObject paramObject,
     Object dataObject,
     Object customObject,
     Object addinObject)
     throws Exception {
   if (serviceKey == null || serviceKey.trim().length() == 0) return null;
   //
   paramObject.SetValueByEnvName("ServiceKey", serviceKey);
   if (runType == 0x0001)
     //
     return (JResponseObject)
         EAI.DAL.IOM(
             "BZServiceComponentManager",
             "syncRunService",
             paramObject,
             dataObject,
             customObject,
             addinObject);
   if (runType == 0x0002)
     // �������ú�̨����
     return (JResponseObject)
         EAI.DAL.IOM(
             "BZServiceComponentManager",
             "asyncRunService",
             paramObject,
             dataObject,
             customObject,
             addinObject);
   return null;
 }
Esempio n. 2
0
 /**
  * @param serviceKey String
  * @param paramObject JParamObject
  * @param dataObject Object
  * @param customObject Object
  * @param addinObject Object
  * @return JResponseObject
  * @throws Exception
  */
 public static JResponseObject runAyncService(
     String serviceKey,
     JParamObject paramObject,
     Object dataObject,
     Object customObject,
     Object addinObject)
     throws Exception {
   if (serviceKey == null || serviceKey.trim().length() == 0) return null;
   //
   paramObject.SetValueByEnvName("ServiceKey", serviceKey);
   return runEnterpriseService(
       serviceKey, 0x0002, paramObject, dataObject, customObject, addinObject);
 }