--- dao/DaoMqPump2/MQFilter/FilterMainProgram.cs 2014/05/16 16:05:47 2161 +++ dao/DaoMqPump2/MQFilter/FilterMainProgram.cs 2014/05/20 20:00:10 2178 @@ -9,6 +9,9 @@ using System.Collections.Specialized; using System.Runtime.InteropServices; +using DaoCommon; +using IBM.WMQ; + namespace MQFilter { @@ -17,15 +20,16 @@ static void Main(string[] args) { - if (args.Length == 1) + + if (args.Length == 1) { if (args[0] == "--debug") - { + { try { - - TransportController controller = TransportController.getInstance(); + + FilterController controller = FilterController.getInstance(); ElapsedTimer timer = new ElapsedTimer(); controller.transportAllMessages(); @@ -35,16 +39,18 @@ } catch (Exception e) { + Console.WriteLine("Error: " + e.Message); + Console.WriteLine(e.StackTrace); } - + Console.WriteLine("Press any key to continue"); Console.ReadKey(); //wait for user input - } + } else if (args[0] == "/i" || args[0] == "/u") { @@ -57,7 +63,7 @@ { undo = true; } - MyServiceInstaller.DoInstall(undo, new string[] { }); + MyServiceInstaller.DoInstall(undo, new string[] { }); } else {