MB--MQ数据流

[size=medium][color=red]1.启动mq资源管理器
新建队列管理器csp_test,新建2个本地队列q1,q2

2.启动mb toolkit管理器
2.1新建MQ单向消息流工程,命名为csp_project
2.2新建消息流csp_demo,在图的右边部分新增MQInput和MQOutput节点
2.3配置MQInput节点,先设置绑定队列q1
2.4再添加监视项目,包括事务开始,事务结束,输出终端,捕获终端
2.5在添加监视项目时,需要添加事件有效内容,其中事务开始,事务结束,输出终端:$Root捕获终端:$ExceptionList

3.新建代理,执行组,部署信息流
3.1新建代理csp_broker
3.2新建执行组csp_group
3.3部署信息流mqsi.csp_demo

4.启动mb控制台,启动监视程序
命令: mqsichangeflowmonitoring csp_broker -e csp_group -f mqsi.csp_demo -c active

5.启动MM+ Web控制台
5.1点击代理管理代理列表注册代理
5.2点击代理管理代理列表启动监视chengxu如果图右边显示已启动,表示配置成功!

6.发送队列信息
往队列q1发送信息A,队列q2会收到信息A.这时会生成2个信息流信息.
6.1一个mqinput的xml字符流
<wmb:event
xmlns:wmb="http://www.ibm.com/xmlns/prod/websphere/messagebroker/6.1.0/monitoring/event">
<wmb:eventPointData>
<wmb:eventData wmb:productVersion="7000"
wmb:eventSchemaVersion="6.1.0.3" wmb:eventSourceAddress="MQInput.terminal.out">
<wmb:eventIdentity wmb:eventName="MQInput.输出Terminal" />
<wmb:eventSequence wmb:creationTime="2011-11-29T06:13:17.760Z"
wmb:counter="2" />
<wmb:eventCorrelation wmb:localTransactionId="b0d3597e-83dc-4c25-a86d-1f707ad97650-6"
wmb:parentTransactionId="" wmb:globalTransactionId="" />
</wmb:eventData>
<wmb:messageFlowData>
<wmb:broker wmb:name="csp_broker"
wmb:UUID="870d79d0-8e61-4ddd-ae47-c0a0e405a8fb" />
<wmb:executionGroup wmb:name="csp_group"
wmb:UUID="049c14ed-3301-0000-0080-fd9b8f33a858" />
<wmb:messageFlow wmb:uniqueFlowName="csp_broker.csp_group.mqsi.csp_demo"
wmb:name="mqsi.csp_demo" wmb:UUID="f9fb68ed-3301-0000-0080-dfd4a52f545b"
wmb:threadId="9512" />
<wmb:node wmb:nodeLabel="MQInput" wmb:nodeType="ComIbmMQInputNode"
wmb:terminal="out" />
</wmb:messageFlowData>
</wmb:eventPointData>
<wmb:applicationData xmlns="">
<wmb:complexContent wmb:elementName="Root">
<Root>
<Properties>
<MessageSet></MessageSet>
<MessageType></MessageType>
<MessageFormat></MessageFormat>
<Encoding>273</Encoding>
<CodedCharSetId>819</CodedCharSetId>
<Transactional>true</Transactional>
<Persistence>false</Persistence>
<CreationTime>2011-11-29T06:13:17.740</CreationTime>
<ExpirationTime>-1</ExpirationTime>
<Priority>0</Priority>
<ReplyIdentifier>000000000000000000000000000000000000000000000000
</ReplyIdentifier>
<ReplyProtocol>MQ</ReplyProtocol>
<Topic></Topic>
<ContentType></ContentType>
<IdentitySourceType></IdentitySourceType>
<IdentitySourceToken></IdentitySourceToken>
<IdentitySourcePassword></IdentitySourcePassword>
<IdentitySourceIssuedBy></IdentitySourceIssuedBy>
<IdentityMappedType></IdentityMappedType>
<IdentityMappedToken></IdentityMappedToken>
<IdentityMappedPassword></IdentityMappedPassword>
<IdentityMappedIssuedBy></IdentityMappedIssuedBy>
</Properties>
<MQMD>
<SourceQueue>q1</SourceQueue>
<Transactional>true</Transactional>
<Encoding>273</Encoding>
<CodedCharSetId>819</CodedCharSetId>
<Format>MQSTR </Format>
<Version>2</Version>
<Report>0</Report>
<MsgType>8</MsgType>
<Expiry>-1</Expiry>
<Feedback>0</Feedback>
<Priority>0</Priority>
<Persistence>0</Persistence>
<MsgId>414d51206373705f74657374202020208f3ed44e2002d502</MsgId>
<CorrelId>000000000000000000000000000000000000000000000000
</CorrelId>
<BackoutCount>0</BackoutCount>
<ReplyToQ>
</ReplyToQ>
<ReplyToQMgr>csp_test </ReplyToQMgr>
<UserIdentifier>MUSR_MQADMIN</UserIdentifier>
<AccountingToken>160105150000000a6e2fbd359b96123a3cd9e5ec03000000000000000000000b
</AccountingToken>
<ApplIdentityData>
</ApplIdentityData>
<PutApplType>28</PutApplType>
<PutApplName>WebSphere MQ Client for Java</PutApplName>
<PutDate>2011-11-29</PutDate>
<PutTime>06:13:17.740</PutTime>
<ApplOriginData>
</ApplOriginData>
<GroupId>000000000000000000000000000000000000000000000000</GroupId>
<MsgSeqNumber>1</MsgSeqNumber>
<Offset>0</Offset>
<MsgFlags>0</MsgFlags>
<OriginalLength>-1</OriginalLength>
</MQMD>
<XMLNSC />
</Root>
</wmb:complexContent>
<wmb:complexContent wmb:elementName="Root">
<Root>
<Properties>
<MessageSet></MessageSet>
<MessageType></MessageType>
<MessageFormat></MessageFormat>
<Encoding>273</Encoding>
<CodedCharSetId>819</CodedCharSetId>
<Transactional>true</Transactional>
<Persistence>false</Persistence>
<CreationTime>2011-11-29T06:13:17.740</CreationTime>
<ExpirationTime>-1</ExpirationTime>
<Priority>0</Priority>
<ReplyIdentifier>000000000000000000000000000000000000000000000000
</ReplyIdentifier>
<ReplyProtocol>MQ</ReplyProtocol>
<Topic></Topic>
<ContentType></ContentType>
<IdentitySourceType></IdentitySourceType>
<IdentitySourceToken></IdentitySourceToken>
<IdentitySourcePassword></IdentitySourcePassword>
<IdentitySourceIssuedBy></IdentitySourceIssuedBy>
<IdentityMappedType></IdentityMappedType>
<IdentityMappedToken></IdentityMappedToken>
<IdentityMappedPassword></IdentityMappedPassword>
<IdentityMappedIssuedBy></IdentityMappedIssuedBy>
</Properties>
<MQMD>
<SourceQueue>q1</SourceQueue>
<Transactional>true</Transactional>
<Encoding>273</Encoding>
<CodedCharSetId>819</CodedCharSetId>
<Format>MQSTR </Format>
<Version>2</Version>
<Report>0</Report>
<MsgType>8</MsgType>
<Expiry>-1</Expiry>
<Feedback>0</Feedback>
<Priority>0</Priority>
<Persistence>0</Persistence>
<MsgId>414d51206373705f74657374202020208f3ed44e2002d502</MsgId>
<CorrelId>000000000000000000000000000000000000000000000000
</CorrelId>
<BackoutCount>0</BackoutCount>
<ReplyToQ>
</ReplyToQ>
<ReplyToQMgr>csp_test </ReplyToQMgr>
<UserIdentifier>MUSR_MQADMIN</UserIdentifier>
<AccountingToken>160105150000000a6e2fbd359b96123a3cd9e5ec03000000000000000000000b
</AccountingToken>
<ApplIdentityData>
</ApplIdentityData>
<PutApplType>28</PutApplType>
<PutApplName>WebSphere MQ Client for Java</PutApplName>
<PutDate>2011-11-29</PutDate>
<PutTime>06:13:17.740</PutTime>
<ApplOriginData>
</ApplOriginData>
<GroupId>000000000000000000000000000000000000000000000000</GroupId>
<MsgSeqNumber>1</MsgSeqNumber>
<Offset>0</Offset>
<MsgFlags>0</MsgFlags>
<OriginalLength>-1</OriginalLength>
</MQMD>
<XMLNSC />
</Root>
</wmb:complexContent>
</wmb:applicationData>
</wmb:event>


6.2一个mqoutput字符流
<wmb:event
xmlns:wmb="http://www.ibm.com/xmlns/prod/websphere/messagebroker/6.1.0/monitoring/event">
<wmb:eventPointData>
<wmb:eventData wmb:productVersion="7000"
wmb:eventSchemaVersion="6.1.0.3" wmb:eventSourceAddress="MQOutput.terminal.in">
<wmb:eventIdentity wmb:eventName="MQOutput.输入Terminal" />
<wmb:eventSequence wmb:creationTime="2011-11-29T06:13:17.760Z"
wmb:counter="3" />
<wmb:eventCorrelation wmb:localTransactionId="b0d3597e-83dc-4c25-a86d-1f707ad97650-6"
wmb:parentTransactionId="" wmb:globalTransactionId="" />
</wmb:eventData>
<wmb:messageFlowData>
<wmb:broker wmb:name="csp_broker"
wmb:UUID="870d79d0-8e61-4ddd-ae47-c0a0e405a8fb" />
<wmb:executionGroup wmb:name="csp_group"
wmb:UUID="049c14ed-3301-0000-0080-fd9b8f33a858" />
<wmb:messageFlow wmb:uniqueFlowName="csp_broker.csp_group.mqsi.csp_demo"
wmb:name="mqsi.csp_demo" wmb:UUID="f9fb68ed-3301-0000-0080-dfd4a52f545b"
wmb:threadId="9512" />
<wmb:node wmb:nodeLabel="MQOutput" wmb:nodeType="ComIbmMQOutputNode"
wmb:terminal="in" />
</wmb:messageFlowData>
</wmb:eventPointData>
<wmb:applicationData xmlns="">
<wmb:complexContent wmb:elementName="Root">
<Root>
<Properties>
<MessageSet></MessageSet>
<MessageType></MessageType>
<MessageFormat></MessageFormat>
<Encoding>273</Encoding>
<CodedCharSetId>819</CodedCharSetId>
<Transactional>true</Transactional>
<Persistence>false</Persistence>
<CreationTime>2011-11-29T06:13:17.740</CreationTime>
<ExpirationTime>-1</ExpirationTime>
<Priority>0</Priority>
<ReplyIdentifier>000000000000000000000000000000000000000000000000
</ReplyIdentifier>
<ReplyProtocol>MQ</ReplyProtocol>
<Topic></Topic>
<ContentType></ContentType>
<IdentitySourceType></IdentitySourceType>
<IdentitySourceToken></IdentitySourceToken>
<IdentitySourcePassword></IdentitySourcePassword>
<IdentitySourceIssuedBy></IdentitySourceIssuedBy>
<IdentityMappedType></IdentityMappedType>
<IdentityMappedToken></IdentityMappedToken>
<IdentityMappedPassword></IdentityMappedPassword>
<IdentityMappedIssuedBy></IdentityMappedIssuedBy>
</Properties>
<MQMD>
<SourceQueue>q1</SourceQueue>
<Transactional>true</Transactional>
<Encoding>273</Encoding>
<CodedCharSetId>819</CodedCharSetId>
<Format>MQSTR </Format>
<Version>2</Version>
<Report>0</Report>
<MsgType>8</MsgType>
<Expiry>-1</Expiry>
<Feedback>0</Feedback>
<Priority>0</Priority>
<Persistence>0</Persistence>
<MsgId>414d51206373705f74657374202020208f3ed44e2002d502</MsgId>
<CorrelId>000000000000000000000000000000000000000000000000
</CorrelId>
<BackoutCount>0</BackoutCount>
<ReplyToQ>
</ReplyToQ>
<ReplyToQMgr>csp_test </ReplyToQMgr>
<UserIdentifier>MUSR_MQADMIN</UserIdentifier>
<AccountingToken>160105150000000a6e2fbd359b96123a3cd9e5ec03000000000000000000000b
</AccountingToken>
<ApplIdentityData>
</ApplIdentityData>
<PutApplType>28</PutApplType>
<PutApplName>WebSphere MQ Client for Java</PutApplName>
<PutDate>2011-11-29</PutDate>
<PutTime>06:13:17.740</PutTime>
<ApplOriginData>
</ApplOriginData>
<GroupId>000000000000000000000000000000000000000000000000</GroupId>
<MsgSeqNumber>1</MsgSeqNumber>
<Offset>0</Offset>
<MsgFlags>0</MsgFlags>
<OriginalLength>-1</OriginalLength>
</MQMD>
<XMLNSC />
</Root>
</wmb:complexContent>
</wmb:applicationData>
</wmb:event>

7.查看记录
7.1流信息写入数据库表MONITOR_MAIN,MONITOR_MESSAGE_FLOW
7.2点击代理监控实时监控
7.3点击链接,查看详细信息

8.修改的bug
8.1MONITOR_MESSAGE_FLOW表的字段MMFID原来是interger字段,要改成varchar2(50)字段.
8.2用myMonitorMB项目(10楼那位称改了至少10个bug了的),其中PaserMonitorMsg.java的164行,256行需要修改.164行:transaction.startterminal.out,256行:transaction.endterminal.in

9.存在问题
9.1上面8.2bug修改有风险.用Mb做成的csp_project工程还比较简单,只有mqinput和mqoutput,如果环境复杂化,需要进一步测试修改。另外上次我们去10楼,那位也只试成功错误监视节点,即terminal.failure还是terminal.error
9.2Web控制台中点击代理管理部署管理部署信息流,不成功。
9.3Web控制台中点击代理监控实时监控链接,缺少事务开始记录。[/color][/size]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值