Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebSphere MQ Configuration issues

getting below error after i configure MQ connection factory.

java.lang.ClassCastException: com.ibm.ejs.jms.JMSQueueConnectionFactoryHandle incompatible with com.ibm.mq.jms.MQQueueConnectionFactory

my code snippet where the exception is pointing to :

String queueConnectionJndi = props.getProperty(queueConnection + MQ_CONN); queueConnectionFactory = MQQueueConnectionFactory)initialContext.lookup(queueConnectionJndi);

I am not able to find out the root cause of this.

can any body please help me on this, Thanks in advance.

like image 270
srini Avatar asked May 07 '26 18:05

srini


1 Answers

There is no way to be sure without more context, but it looks like this method call:

initialContext.lookup(queueConnectionJndi);

is returning an object of type com.ibm.ejs.jms.JMSQueueConnectionFactoryHandle which cannot be cast to com.ibm.mq.jms.MQQueueConnectionFactory.

Can you provide more context?

like image 97
Tim Lamballais Avatar answered May 10 '26 06:05

Tim Lamballais



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!