mq fte and ant script

这一生的挚爱 提交于 2019-12-11 08:30:04

问题


Can we use globmapper inside "presrc" or "postsrc" call? If we can, how to use?


回答1:


The "presrc" or "postsrc" calls can run any valid Ant script so the short answer is "yes".

Hopefully, someone will respond with a sample code to provide the longer answer. :-)




回答2:


Sample for reference:

<fte:filemove src="${source.agent}@${source.qmgr}" dst="${destination.agent}@${destination.qmgr}" rcproperty="copy.result">
<fte:presrc command="antfile.xml" type="antscript" retryCount="2" retryWait="30" successRC="0">
    <property name="source.filename" value="${trigger.filename}"/>
    <property name="source_path" value="${source.path}"/>
    <property name="source_agent" value="${source.agent}"/>
    <property name="source_qmgr" value="${source.qmgr}"/>
    <property name="source_archive_path" value="${archive.path}"/>
</fte:presrc>
<fte:filespec srcfilespec="${source.path}/${trigger.filename}" dstfile="${destination.path}/${trigger.filename}" overwrite="true"/>    
<fte:postdst command="antfile.xml" type="antscript" retryCount="2" retryWait="30" successRC="0">
    <property name="destination.filename" value="${trigger.filename}"/>
    <property name="destination_path" value="${destination.path}"/>
    <property name="destination_agent" value="${destination.agent}"/>
    <property name="destination_qmgr" value="${destination.qmgr}"/>
</fte:postdst> 



来源:https://stackoverflow.com/questions/5430730/mq-fte-and-ant-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!