|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQConnectionFactory cannot be cast to javax.jms.QueueConnect |
« View previous topic :: View next topic » |
Author |
Message
|
ivanachukapawn |
Posted: Tue Nov 05, 2013 5:01 am Post subject: MQConnectionFactory cannot be cast to javax.jms.QueueConnect |
|
|
 Knight
Joined: 27 Oct 2003 Posts: 561
|
Receive this error message when running a NetBeans JMS client project: java.lang.ClassCastException: com.ibm.mq.jms.MQConnectionFactory cannot be cast to javax.jms.QueueConnectionFactory - I used MQExplorer (7.5.0.1) to create the JMS Administered objects (file-based initial context, connection factory and destination (with qmgr)) - The JMS client has this object: QueueConnectionFactory factory; - Curious as to why the MQExplorer-created JMS administered object Connection Factory does not match with the JMS client - but nevertheless, how to I fix this? According to the MQ Java/JMS developer documentation, I should be using JMS MQ Extensions - aren't the Extensions included automatically in the 7.5 client by way of the packaged .jars? If have these library .jars in my NetBeans project build configuration: artifactURI=null, type=0, property=${file.reference.com.ibm.mq.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@36af1586, broken=false, additional={}
artifactURI=null, type=0, property=${file.reference.com.ibm.mqjms.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@9825806a, broken=false, additional={}
artifactURI=null, type=0, property=${file.reference.jms.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@7a374575, broken=false, additional={}
artifactURI=null, type=0, property=${file.reference.jndi.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@77c81324, broken=false, additional={}
artifactURI=null, type=0, property=${file.reference.com.ibm.mq.commonservices.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@4013b151, broken=false, additional={}
artifactURI=null, type=0, property=${file.reference.com.ibm.mq.jmqi.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@f67ee5a3, broken=false, additional={}
artifactURI=null, type=0, property=${file.reference.com.ibm.mq.tools.ras.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@808c09a9, broken=false, additional={} |
|
Back to top |
|
 |
ivanachukapawn |
Posted: Tue Nov 05, 2013 9:36 am Post subject: |
|
|
 Knight
Joined: 27 Oct 2003 Posts: 561
|
OK guys. My apologies - hope you didn't spend any time on this. I found the dialogue in MQExplorer for creating connection factories - it asks for the type - and to make this work, I selected QueueConnectionFactory. Sorry about that. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|