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 » IBM MQ Java / JMS » Connect remote Mq manager using standalone java program?

Post new topic  Reply to topic
 Connect remote Mq manager using standalone java program? « View previous topic :: View next topic » 
Author Message
sabarinathan
PostPosted: Sun Jul 28, 2013 10:41 pm    Post subject: Connect remote Mq manager using standalone java program? Reply with quote

Newbie

Joined: 28 Jul 2013
Posts: 4

Friends, I installed IBM explorer 7.1 which have server and GUI. Locally I connected the queue using inter process communication. Now I need to connect the server QM from remote machine using java standalone program. In server I have created a queue, port and server channel. when I trying to connect using host name , unable to get the connection. Is this the right way?. else I have to install client where I tried connect that server.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jul 29, 2013 1:05 pm    Post subject: Re: Connect remote Mq manager using standalone java program? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sabarinathan wrote:
Is this the right way?


Yes

sabarinathan wrote:
I have to install client where I tried connect that server.


Yes you do.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
sabarinathan
PostPosted: Tue Jul 30, 2013 2:03 am    Post subject: getting error 2035. Reply with quote

Newbie

Joined: 28 Jul 2013
Posts: 4

using mq explorer i have created queue manager,channel. but getting error code 2035 when i run that java program. listener and queue manage is running in remote machine. Some forum i seen that AMQCLCHL.TAB file using for client connection. I had confusion whether i have to use that for client connection. if yes how i can use that?
my sample program
MQEnvironment.hostname = "192.168.2.42";
MQEnvironment.channel = "CHANNEL1";
MQEnvironment.port = 1414;
// MQEnvironment.userID = user;
// MQEnvironment.password = password;
MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_CLIENT);
try{ qManager = new MQQueueManager(qMngrStr);}
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Jul 30, 2013 2:17 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

MQRC 2035 is not authorized - always look up return codes.
Back to top
View user's profile Send private message
sabarinathan
PostPosted: Tue Jul 30, 2013 2:21 am    Post subject: i did't added credential for qmanager Reply with quote

Newbie

Joined: 28 Jul 2013
Posts: 4

i did't added credential for qmanager. credential is blank. i don't know why im getting these error.
Back to top
View user's profile Send private message
sabarinathan
PostPosted: Tue Jul 30, 2013 3:57 am    Post subject: Reply with quote

Newbie

Joined: 28 Jul 2013
Posts: 4

zpat wrote:
MQRC 2035 is not authorized - always look up return codes.



i did't added credential for qmanager. credential is blank. i don't know why im getting these error
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jul 30, 2013 5:57 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sabarinathan wrote:
i did't added credential for qmanager. credential is blank.


Erm....

sabarinathan wrote:
i don't know why im getting these error


Because the queue manager has no credentials and hence can't authorize you??
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
hughson
PostPosted: Tue Jul 30, 2013 6:20 am    Post subject: Re: getting error 2035. Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1959
Location: Bay of Plenty, New Zealand

sabarinathan wrote:
using mq explorer i have created queue manager,channel. but getting error code 2035 when i run that java program. listener and queue manage is running in remote machine.


Wen you receive an error, always remember to check the queue manager error logs and the client error logs. In this case the queue manager error logs are going to give you a very strong clue as to why you were told 2035.

I suspect once you have read the error log on the queue manager, you might need to read this: CHLAUTH help, but check the queue manager error log first, it's a really great habit to get into.

Cheers
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Connect remote Mq manager using standalone java program?
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.