开发者

mq fte and ant script

Can we use globmapper inside "presrc" or "postsrc" cal开发者_如何学运维l? If we can, how to use?


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. :-)


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> 

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜