Hello-
I'm running a stateless session bean in WebSphere (WAS) 3.5 and trying to connect to an MQSeries queue. MQSeries is running on the same server as WAS. As I understand, I need to connect using a "binding" connection. My code looks like this:
MQQueueManager aQMgr = null;
try {
// Create a connection to the queue manager
aQMgr = new MQQueueManager("QM_vna004"
;
}
catch (MQException mqe) {
System.out.println("An MQ error occured: CC:" +
mqe.completionCode + "Reason Code:" +
mqe.reasonCode);
}
Running this from a simple Java program on the server works just fine, but the EJB bombs on the "aQMgr = new MQQueueManager(qManager)" statement with a NullPointer exception. Anyone have any thoughts?
Thanks - JP
I'm running a stateless session bean in WebSphere (WAS) 3.5 and trying to connect to an MQSeries queue. MQSeries is running on the same server as WAS. As I understand, I need to connect using a "binding" connection. My code looks like this:
MQQueueManager aQMgr = null;
try {
// Create a connection to the queue manager
aQMgr = new MQQueueManager("QM_vna004"
}
catch (MQException mqe) {
System.out.println("An MQ error occured: CC:" +
mqe.completionCode + "Reason Code:" +
mqe.reasonCode);
}
Running this from a simple Java program on the server works just fine, but the EJB bombs on the "aQMgr = new MQQueueManager(qManager)" statement with a NullPointer exception. Anyone have any thoughts?
Thanks - JP