Example #1
0
 void IEvent.Event()
 {
     if (itms.Count <= 0)
     {
         ErrorSetCONTINUE();
     }
     else
     {
         byte[]  it  = itms.Peek();
         Filter4 ftr = (Filter4)ServiceGetFilter();
         try  {
             ftr.LinkConnect();
             ftr.SendBDY(it);
         } catch (Exception ex) {
             ftr.ErrorSet(ex);
             if (ftr.ErrorIsEXIT())
             {
                 ftr.ErrorReset();
                 return;
             }
             else
             {
                 ftr.ErrorWrite();
             }
         }
         itms.Dequeue();
     }
 }
Example #2
0
 public static void Main(string[] argv)
 {
     Filter4 srv = new Filter4();
       try {
     srv.ConfigSetIgnoreExit(true);
     srv.LinkCreate(argv);
     srv.ProcessEvent(MqS.WAIT.FOREVER);
       } catch (Exception ex) {
     srv.ErrorSet (ex);
       }
       srv.Exit();
 }
Example #3
0
 public static void Main(string[] argv)
 {
     MqFactoryS<Filter4>.Default("transFilter");
       Filter4 srv = new Filter4(null);
       try {
     srv.ConfigSetIgnoreExit(true);
     srv.LinkCreate(argv);
     srv.ProcessEvent(MqS.WAIT.FOREVER);
       } catch (Exception ex) {
     srv.ErrorSet (ex);
       }
       srv.Exit();
 }
Example #4
0
        public static void Main(string[] argv)
        {
            Filter4 srv = new Filter4();

            try {
                srv.ConfigSetIgnoreExit(true);
                srv.LinkCreate(argv);
                srv.ProcessEvent(MqS.WAIT.FOREVER);
            } catch (Exception ex) {
                srv.ErrorSet(ex);
            }
            srv.Exit();
        }
Example #5
0
        public static void Main(string[] argv)
        {
            MqFactoryS <Filter4> .Default("transFilter");

            Filter4 srv = new Filter4(null);

            try {
                srv.ConfigSetIgnoreExit(true);
                srv.LinkCreate(argv);
                srv.ProcessEvent(MqS.WAIT.FOREVER);
            } catch (Exception ex) {
                srv.ErrorSet(ex);
            }
            srv.Exit();
        }
Example #6
0
 void IEvent.Event()
 {
     if (itms.Count <= 0)
     {
         ErrorSetCONTINUE();
     }
     else
     {
         FilterItmS it  = itms.Peek();
         Filter4    ftr = (Filter4)ServiceGetFilter();
         try  {
             ftr.LinkConnect();
             ftr.SendSTART();
             ftr.SendBDY(it.bdy);
             if (it.isTransaction)
             {
                 ftr.SendEND_AND_WAIT(it.token);
             }
             else
             {
                 ftr.SendEND(it.token);
             }
         } catch (Exception ex) {
             ftr.ErrorSet(ex);
             if (ftr.ErrorIsEXIT())
             {
                 ftr.ErrorReset();
                 return;
             }
             else
             {
                 ftr.ErrorWrite();
             }
         }
         itms.Dequeue();
     }
 }