java - MQ initial context class in MQ series 9 -
i have jndi context in mq queue manager, standalone java client able lookup, initial context class, com.ibm.mq.jms.context.wmqinitialcontextfactory
, working mq client jars versions before mq 8. has mqcontext.jar
in classpath.
with mq 8 , 9, trying use relocatable jars com.ibm.mq.allclient.jar
, com.ibm.mq.tracecontrol.jar
in classpath , jndi lookup failing. if add old mqcontext.jar
classpath, below error.
javax.naming.namingexception: caught mq exception: com.ibm.msg.client.jms.detailedmessageformatexception: jmscc0053: exception occurred deserializing message, exception: 'java.io.invalidclassexception: com.ibm.msg.client.wmq.common.wmqconnectionname; local class incompatible: stream classdesc serialversionuid = 3226780381239434112, local class serialversionuid = -2174857328193645055'.
for ibm mq classes jms can find list of files required on knowledge center page "what installed ibm mq classes jms":
relocatable jar files
within enterprise, following files can moved systems need run ibm mq classes jms:
- com.ibm.mq.allclient.jar
- com.ibm.mq.tracecontrol.jar
- jms.jar
- fscontext.jar
- providerutil.jar
Comments
Post a Comment