1
是否可以在MQFTE中調用poststst和presrc調用中的antscript?是否可以在MQFTE的postdst和presrc調用中調用antscript?
是否可以在MQFTE中調用poststst和presrc調用中的antscript?是否可以在MQFTE的postdst和presrc調用中調用antscript?
下面是一個例子:
<request version="4.00" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FileTransfer.xsd">
<managedTransfer>
<originator>
<hostName>$hostName</hostName>
<userID>$userID</userID>
</originator>
<sourceAgent QMgr="$sourceQM" agent="$sourceAgent"/>
<destinationAgent QMgr="$destQM" agent="$destAgent"/>
<transferSet priority="5">
<metaDataSet>
<metaData key="some_key">Some value</metaData>
</metaDataSet>
<postSourceCall>
<command name="example.xml" retryCount="0" retryWait="0" successRC="0" type="antscript">
<property name="ant.FILEPATH" value="$filepath"/>
<property name="antSrcAgent" value="$sourceAgent"/>
</command>
</postSourceCall>
<item checksumMethod="MD5" mode="binary">
<source disposition="delete" recursive="false">
<file>$filepath</file>
</source>
<destination exist="error" type="directory">
<file>$destFile</file>
</destination>
</item>
</transferSet>
<job>
<name>Example FTE job</name>
</job>
</managedTransfer>
</request>
傳遞到Ant腳本的屬性是任意名稱。你可以通過這種方式傳遞任何屬性。我使用postSourceCall,但可以將其更改爲postDest,preSource等。
是,請參閱:http://stackoverflow.com/questions/5430730/mq-fte-and-ant-script – 2011-05-06 13:17:59
@martin clayton您能否提供我的語法。 – trilawney 2011-05-09 08:43:39
我沒有任何測試的方法,但基於http://publib.boulder.ibm.com/infocenter/wmqfte/v7r0/index.jsp?topic=/com.ibm.wmqfte.doc/上的文檔nested_params.htm我認爲像'' –
2011-05-09 10:00:51