ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » a question about mq jms client application

Post new topic  Reply to topic
 a question about mq jms client application « View previous topic :: View next topic » 
Author Message
mrliang
PostPosted: Mon Jun 23, 2003 10:05 pm    Post subject: a question about mq jms client application Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Tue Jun 24, 2003 7:32 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
mrliang
PostPosted: Tue Jun 24, 2003 5:52 pm    Post subject: no fdc file found Reply with quote

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
View user's profile Send private message
EddieA
PostPosted: Wed Jun 25, 2003 8:55 am    Post subject: Reply with quote

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
View user's profile Send private message
mrliang
PostPosted: Wed Jun 25, 2003 6:01 pm    Post subject: some error log Reply with quote

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
View user's profile Send private message
mrliang
PostPosted: Thu Jun 26, 2003 7:39 pm    Post subject: i found it! Reply with quote

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
View user's profile Send private message
hagai2003
PostPosted: Wed Jul 02, 2003 4:35 am    Post subject: finding the CCSID Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » a question about mq jms client application
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.