示例文件MQin_mq.jca:
<adapter-config name="MQ_QUEUEin" adapter="MQSeriesAdapter" wsdlLocation="MQ_QUEUEin.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/MQ/APP" adapterRef=""/>
<endpoint-activation portType="Dequeue_ptt" operation="Dequeue" UITransmissionPrimitive="Dequeue">
<activation-spec className="oracle.tip.adapter.mq.inbound.ActivationSpecImpl">
<property name="QueueName" value="__MQ_QUEUE__"/>
<property name="InboundThreadCount" value="1"/>
<property name="UseMessageEncodingForTranslation" value="false"/>
</activation-spec>
</endpoint-activation>
</adapter-config>
ANT build.xml 脚本文件将属性占位符替换为值:
<?xml version="1.0" encoding="UTF-8" ?>
<project default="deploy" basedir=".">
<target name="deploy">
<delete dir="temp" />
<delete dir="temp2" />
<unzip src="${basedir}/sca_app_rev${deploy.revision}.jar"
dest="temp" />
<replaceregexp file="temp/MQin_mq.jca"
match="__MQ_QUEUE__"
replace="${app.queue.MQ_QUEUE}" />
<mkdir dir="temp2" />
<zip destfile="${basedir}/temp2/sca_app_rev${deploy.revision}.jar"
basedir="temp" />
<ant antfile="ant-sca-deploy.xml" dir="${env.BEA_HOME}/jdeveloper/bin">
<property name="serverURL" value=" http://${weblogic.host}:8001" />
<property name="sarLocation" value="${basedir}@{dir}/sca_app_rev${deploy.revision}.jar" />
<property name="overwrite" value="true" />
<property name="user" value="weblogic" />
<property name="password" value="${weblogic.password}" />
<property name="forceDefault" value="true" />
<property name="failOnError" value="true" />
</ant>
</target>
</project>