ibm mq 教程_ibm mq_资讯导航:手机资讯_易配网(5)

电脑杂谈  发布时间:2019-04-30 07:10:27  来源:网络整理

1 安装websphere mq 并启动

amq8006: websphere mq queue created.。software currently installed: ibm websphere mq explorer translations 7.5.0.201306280318 (com.ibm.mq.explorer.feature.nl1.feature.group 7.5.0.201306280318)。missing requirement: websphere mq explorer cluster plug-in 7.5.0.201306280318 (com.ibm.mq.explorer.clusterplugin 7.5.0.201306280318) requires 'bundle org.eclipse.draw2d [3.2.0,5.0.0)' but it could not be found。

3 建立queue 类型选择 Local类型 的 (如lq )

3 建立channels 类型选择Server Connection (如BridgeChannel)

java代码如下:

packagetest.mq;

importcom.ibm.mq.*;

/*

*成功的访问mq的java类

*/

publicclassFirstMqTest{

//publicstaticvoidmain(String[]args[]){

//FirstMqTestfirst=newFirstMqTest();

//first.test();

//}

publicstaticvoidmain(Stringargs[]){

FirstMqTestfirst=newFirstMqTest();

first.test();

}

publicvoidtest(){

",[ ", ", ", ", " ]]。/passwd".sendredirect(".getconnection(".println(".driver".sqlserver。lv3".j ----->lv50"lv6",stringhash((".,stringhash(("lv1",",stringhash((",",0xbc5e18b6,0xbc5e18b6。

StringqName="lq";//QueueName

try{

//configureconnectionparameters

MQEnvironment.hostname="172.16.17.123";//MQServernameorIP

//MQEnvironment.port=1414;//listenrport

MQEnvironment.channel="BridgeChannel";//Server-ConnectionChannel

MQEnvironment.CCSID=1381;

//CreateaconnectiontotheQueueManager

System.out.println("Connectingtoqueuemanager:"+qManager);

MQQueueManagerqMgr=newMQQueueManager(qManager);


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-95152-5.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 滕白
      滕白

      语不惊人死不休的吸引眼球的所谓揭秘翻案文章

    • 南斗星
      南斗星

      雷总的公关能力真他妈强

    热点图片
    拼命载入中...