none
MSMQ : SENDING MESSAGE TO REMOTE PRIVATE QUEUE USING Distributer service Not Working RRS feed

  • General discussion

  • I am working on logging and tracing using MSMQ distributer service, Configured all the settings for MsmqDistributer.exe.config

    But nothing is happening when I am executing my code. I checked distributor service and its running. But nothing happening when I execute following code. No exception nothing. I have even checked event logs. 

                LogEntry logEntry = new LogEntry();
                logEntry.Message = "Starting up the application";
                Logger.Write(logEntry);

                Logger.Write("Hello Error", "Error");
                Logger.Write("Hello Message", "None", 1, 01, TraceEventType.Information);
                Logger.Write("Hello Crash", "General", 1, 02, TraceEventType.Error);
                Logger.Write("Hello Crash", "Error", 1, 01, TraceEventType.Error, "Ravi");

    Message is reaching remote private queue if I use following code in C#

                                                                                                                      

                string sysCommand = "Helloooo";
                MessageQueue rmQ = new  MessageQueue("FormatName:DIRECT=OS:servername\\private$\\recivedlogs");

                using (MessageQueueTransaction transaction = new MessageQueueTransaction())
                {


                        rmQ.DefaultPropertiesToSend.Recoverable = true;
                        System.Messaging.Message mqMessage = new System.Messaging.Message();
                        mqMessage.Body = sysCommand;//xml;

                        mqMessage.AcknowledgeType = AcknowledgeTypes.FullReachQueue | AcknowledgeTypes.FullReceive;
                        transaction.Begin();

                        rmQ.Send(mqMessage, transaction);


                        transaction.Commit();

                }

    Following is MsmsDistributer.exe.config  settings

    Any suggestions?


    Thanks Regards Prashanth Kamasamudram Even the least work done for others awakens the power within; even thinking the least good of others gradually instills into the heart the strength of a lion.




    Tuesday, December 10, 2013 12:20 PM