从ibm-mq读取复制的消息

时间:2019-03-26 22:41:38

标签: java db2 replication ibm-mq

我通过ibm-mq复制了DB2。我必须阅读此消息,并根据此消息更改系统。我需要一个用于本主题中描述的转换消息的库 https://www.ibm.com/support/knowledgecenter/en/SSTRGZ_11.4.0/com.ibm.swg.im.iis.ep.xmlpubsguide.doc/topics/iiyexpmgrtransac.html Java对象。如果有人知道图书馆,这将使我的时间平安。

链接中的事件示例

    <trans isLast="is_last_indicator" segmentNum="segment_number"
  cmitLSN="commit_logical_sequence_number" cmitTime="commit_time"
  authID="authorization_ID" correlationID="correlation_ID"
  planName="plan_name">

  elements

</trans>


  <?xml version="1.0" encoding="UTF-8"?>
<msg xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="mqcap.xsd"
version="1.0.0" dbName="DB1">
<trans isLast="1" segmentNum="1" cmitLSN="0000:0000:0000:06d6:87ab:0000:0000"
  cmitTime="2015-10-31T12:12:12.000122">

  insertRow, updateRow, or deleteRow

</trans>
</msg>


  <?xml version="1.0" encoding="UTF-8"?>
<msg xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="mqcap.xsd" version="1.0.0"
dbName="DB1">
<trans isLast="1" segmentNum="1" cmitLSN="0000:0000:0000:06d6:87ab:0000:0000"
  cmitTime="2003-10-31T12:12:12.000122">
  <insertRow subName="S1" srcOwner="USER1" srcName="T1">

    column_element

  </insertRow>

  <deleteRow subName="S1" srcOwner="USER1" srcName="T1">

    column_element

  </deleteRow>

  <updateRow subName="S1" srcOwner="USER1" srcName="T1">

    column_element

  </updateRow>
</trans>
</msg>

0 个答案:

没有答案