Author |
Message
|
mrliang |
Posted: Mon Jun 23, 2003 10:05 pm Post subject: a question about mq jms client application |
|
|
Newbie
Joined: 23 Jun 2003 Posts: 5
|
When I try to create connection:
MQQueueConnectionFactory factory = new MQQueueConnectionFactory();
factory.setQueueManager(QUEUE_MANAGER);
factory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
factory.setHostName(HOST);
factory.setPort(PORT);
factory.setChannel(CHANNEL);
connection = factory.createQueueConnection();
The java throws exception:
javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'HOST:QUEUE_MANAGER'
linked exception: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2195
Why it is happen?
Thanks in advance. |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Jun 24, 2003 7:32 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
The 2195 is an unexpected error. It usually throws an FDC file. Can you post the top of it here? It might indicate what is wrong. |
|
Back to top |
|
 |
mrliang |
Posted: Tue Jun 24, 2003 5:52 pm Post subject: no fdc file found |
|
|
Newbie
Joined: 23 Jun 2003 Posts: 5
|
but i can't find the fdc file ,the envirement is mq client in windows 2000 system.
when i use amqsputc programe it's ok,so i think it is maybe some error relating jms client.who can tell me? |
|
Back to top |
|
 |
EddieA |
Posted: Wed Jun 25, 2003 8:55 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Try looking for the error on the server you are connecting to.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
mrliang |
Posted: Wed Jun 25, 2003 6:01 pm Post subject: some error log |
|
|
Newbie
Joined: 23 Jun 2003 Posts: 5
|
i have seen the error log.
the info is "consultation fail,and can not create the channel from the machine to remote machine...."
how can i do? |
|
Back to top |
|
 |
mrliang |
Posted: Thu Jun 26, 2003 7:39 pm Post subject: i found it! |
|
|
Newbie
Joined: 23 Jun 2003 Posts: 5
|
i have found the problem about error.
that i've not set the ccsid varible in my jms client code.
like this: mqQueueConnectionFactory.setCCSID(int ccsid);
the ccsid must equal to CCSID in MQ SERVER. |
|
Back to top |
|
 |
hagai2003 |
Posted: Wed Jul 02, 2003 4:35 am Post subject: finding the CCSID |
|
|
Novice
Joined: 08 Jun 2003 Posts: 15
|
hi all,
thanks alot, i had the same problem and using your discussion i solved it.
i'd like to add to those who'r having the same problem :
go to the mq server host (if it's windows) :
regedit -> find OEMCP - that's the CCSID you should put in your QueueConnectionFactory definition.
that's all. |
|
Back to top |
|
 |
|