|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ Connection Error |
« View previous topic :: View next topic » |
Author |
Message
|
zen |
Posted: Tue May 17, 2005 5:54 pm Post subject: MQ Connection Error |
|
|
Apprentice
Joined: 11 May 2005 Posts: 32 Location: Singapore
|
Hi guys, sorry I have to open up another discussion regarding the 2035 exception code. I already searched all the forums regarding this exception and I've tried a lot of the suggestions and solutions presented. Unfortunately, to no avail I cannot make this work! So I'm hoping maybe anybody could provide me some helpful insights regarding this.
Here's the situation:
We have MQ installed in a unix server machine. Using WSAD(Websphere Application Developer v.5) we created a java/jms client connection to the MQ server. The client is running on windows OS. At first, we left the MCAUSER setting to blank and the client was able to connect successfully. However, when we tried to authenticate the connection of the client using the userid usr001, the client keep encountering the error below:
SystemErr R MQJE001: An MQException occurred: Completion Code 2, Reason 2035
MQJE036: Queue manager rejected connection attempt
MQJE001: An MQException occurred: Completion Code 2, Reason 2035
MQJE036: Queue manager rejected connection attempt
We already placed usr001 in the mqm group and below is the dspmqaut results of usr001:
dspmqaut -m MQTEST -t qmgr -p usr001
Entity usr001 has the following authorizations for object MQTEST:
inq
set
connect
altusr
crt
dlt
chg
dsp
setid
setall
Meanwhile on the client, we have a ClientConnectionManager class with the code snippets below:
[more codes]
.........
.......
MQEnvironment.channel = "MQTEST.SVRCONN";
MQEnvironment.hostname = "testserv003";
MQEnvironment.port = 1414;
MQEnvironment.userID = "usr001";
......
.....
....
[more codes]
......
.....
MQSimpleConnectionManager conman = new MQSimpleConnectionManager();
conman.setActive (MQSimpleConnectionManager.MODE_ACTIVE);
conman.setTimeout (20000);
....
....
[more codes]
.....
MQQueueManager qMgr = new MQQueueManager("MQTEST", conman);
ClientConnectionManager.freeConnection (qMgr);
.....
......
Thank you very much for your time. |
|
Back to top |
|
 |
kspranava |
Posted: Tue May 17, 2005 6:05 pm Post subject: refresh security |
|
|
 Centurion
Joined: 27 Apr 2003 Posts: 124
|
Hi,
try to connect after refreshing the security (command is "refresh security"). |
|
Back to top |
|
 |
zen |
Posted: Tue May 17, 2005 6:09 pm Post subject: MQ Connection Error |
|
|
Apprentice
Joined: 11 May 2005 Posts: 32 Location: Singapore
|
Hi,
Thanks a lot for your reply. Yes I already did a refresh security on the mq server.
Any other ideas?
Thanks. |
|
Back to top |
|
 |
kspranava |
Posted: Tue May 17, 2005 6:22 pm Post subject: |
|
|
 Centurion
Joined: 27 Apr 2003 Posts: 124
|
Hi,
Just to check with you,
without the following line "MQEnvironment.userID = "usr001";" in ur java program and MCAUSERID in the SVRCONN chl set to blank, were u able to connect? |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue May 17, 2005 6:27 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Please do not post twice.
Check out my response in the other thread.
And remember after each change of security to issue
Refresh security to the qmgr.
Enjoy
This is a dupplicate thread. Please do not reply to it anymore
http://www.mqseries.net/phpBB2/viewtopic.php?t=22031 |
|
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
|
|
|
|