Beispiel #1
0
 public static MQCustomer getInstance(String shopCode, String posCode, String mqAddr)
 {
     if (shopCode == null || "".Equals(shopCode) || posCode == null || "".Equals(posCode) || mqAddr == null || "".Equals(mqAddr))
     {
         throw new Exception();
     }
     if (instance == null)
     {
         instance = new MQCustomer(shopCode, posCode, mqAddr);
     }
     return(instance);
 }
Beispiel #2
0
 public void ThreadMethod()
 {
     MQCustomer.getInstance(SystemInfo.getConfig(SystemInfo.SHOP_CODE).ToString(), SystemInfo.getConfig(SystemInfo.POS_CODE).ToString(), SystemInfo.getConfig(SystemInfo.MQ_ADDRESS).ToString()).listenerMessage();
     logger.Debug("MessageListener start success");
 }