问题描述:
java写的挡板程序,向响应队列put消息时:
消息 < 3000字节,put消息时间1ms
3000 < 消息 < 4000字节,put消息时间180ms
消息 > 5000,put消息时间1-2ms
环境:
1、在aix上测试时,jdk为ibm的jdk,现象如上描述
2、在windows上测试时,jdk为ibm/sun的jdk,大消息小消息都是1ms
由于生成环境是在aix上,所以windows上调试OK是不行的;
解决办法:
aix上mq的版本是7.0.1.8,之前所用到的mq jar包的版本是6.0.2.3;现在统一使用新版本的mq jar包,主要有:
com.ibm.mq.jar(6.0.2.3)
j2ee.jar
换成
connector.jar(javax.resource.spi.ConnectionManager)
com.ibm.mq.jar(7.0.1.8)
com.ibm.mq.jmqi.jar
com.ibm.mq.headers.jar
com.ibm.mq.commonservices.jar
connector.jar
总结:
兼容性问题