电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

MQJava实现VIP免费

MQJava实现_第1页
1/12
MQJava实现_第2页
2/12
MQJava实现_第3页
3/12
WebSphere MQ For JAVA 编程实例----实现MQ trigger---配置篇 首先做如下配置定义: Use runmqsc to create the following objects: 1. Queue to be triggered. DEFINE QLOCAL('JAVA.TRIGGER.QUEUE') REPLACE + DESCR('Application queue to test triggering') + SHARE + TRIGGER + TRIGTYPE (FIRST) + INITQ('JAVA.INIT.QUEUE') + PROCESS('JAVA.PROCESS') 2. Initiation queue. DEFINE QLOCAL('JAVA.INIT.QUEUE') REPLACE + DESCR('Initiation queue to test triggering') 3. Process. ** DEFINE PROCESS('JAVA.PROCESS') REPLACE + DESCR('Process to test triggering') + APPLICID('java -cp .;c:mqmjavalib;c:mqmjavalibcom.ibm.mq.jar;c:mqmjavalibconnector.jar;c:mqmjavalibjta.jar JavaTrigger') 4. Start the trigger monitor with runmqtrm -m QMGRNAME -q JAVA.INIT.QUEUE ** Note: It must be started in the directory where JavaTrigger.class resides so that JavaTrigger.class can be loaded from the current directory and resolved by "." in the classpath. If your java code is included in a package, then the jar may be added to the classpath and the location where runmqtrm is started does not matter. 5. Put a message on JAVA.TRIGGER.QUEUE. The trigger information along with the first 20 characters of the message is displayed in the window where runmqtrm is active. WebSphere MQ For JAVA 编程实例----实现MQ trigger---样例 MQTrigger.java 源码如下: import java.io.*; import java.lang.*; import com.ibm.mq.*; class MQTrigger { private String structId; private String version; private String qName; private String processName; private String triggerData; private String applType; private String applId; private String envData; private String userData; private String qMgrName; /******************************************************/ /* Constructor to parse the MQTMC2 stucture and set */ /* the class attributes. */...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部