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);
 }
Esempio n. 3
0
 public Object getExtendAgentObject() {
   if (extendAgentObject == null) extendAgentObject = JParamObject.Create();
   //      setAgentSafety(extendAgentObject.isSecurity());
   //      if ( EAI.Server != null && !"".equals(EAI.Server) ) {
   //          if (!extendAgentObject.isSecurity()) {
   //              setAgentServer(extendAgentObject.getEAIServer(EAI.Server));
   //              setAgentPort(extendAgentObject.getEAIPort(EAI.Port));
   //          } else {
   //              setAgentServer(extendAgentObject.getSSLEAIServer(EAI.SSLServer));
   //              setAgentSafetyPort(extendAgentObject.getSSLEAIPort(EAI.SSLPort));
   //          }
   //          setAgentAppName(extendAgentObject.getEnterpriseServer(EAI.Path));
   //          return extendAgentObject;
   //      }
   return extendAgentObject;
 }