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
雷总的公关能力真他妈强
语不惊人死不休的吸引眼球的所谓揭秘翻案文章