• MSMQ Basics Transactional Messages Processing


    1.Transactional message can be classified into internal transactional message and external transactional message
        i.internal message
            An internal transactional message si the simplest type of transaction. however, internal transactional message can not perform transactions with non-message queuing resources such as databases. if we wanna interact with a databas in a DB, we must use external transactional messages.  sending an internal transactional message is just like this:
                MessageQueueTransaction transaction=new MessageQueueTransction.
                MessageQueue mq=new MessageQueue(@".\transactonMQ",true);
                try    
                {
                        transaction.Begin();
                        mq.send("messae body1","label1",transaction);
                        mq.send("message body2","label2",transaction);
                        transaction.Commit();
                        //transaction principle: All or Nothing!
                }
                catch(Exception ex)
                {
                    transaction.Abort();
                 }
  • 相关阅读:
    命令练习题2
    l命令练习题1
    命令用法习题,yum仓库的创建 chapter02
    网络基础知识
    Linux常用的命令及使用方法
    Linux 常见的常识及常用快捷键方式
    一条命令解决mac版本python IDLE无法输入中文问题
    RS232串口的Windows编程纪要
    在龙芯小本上安装Debain8.10
    mac电脑进行可见光通信实验要点
  • 原文地址:https://www.cnblogs.com/Winston/p/1145220.html
Copyright © 2020-2023  润新知