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 Installation/Configuration Support » MQ Simulator for Java Developers in WSAD & Remote QueueM

Post new topic  Reply to topic
 MQ Simulator for Java Developers in WSAD & Remote QueueM « View previous topic :: View next topic » 
Author Message
zmiti
PostPosted: Mon Jan 08, 2007 7:21 am    Post subject: MQ Simulator for Java Developers in WSAD & Remote QueueM Reply with quote

Newbie

Joined: 11 Sep 2006
Posts: 6

Hello,

I try to use for my Localhost the "MQ Simulator for Java Developers" integrated in WSAD and also parallel a remote QueueManager should be used.

The problem is, if the MQ Simulator is activated I get the "com.ibm.mq.MQException" with the reason code "2058" (Queue manager name not valid or not known.). However the Remote QueueManager exists, definitely.

How can I use both?

Thanks for any Ideas!

zmiti


Last edited by zmiti on Mon Jan 08, 2007 7:27 am; edited 1 time in total
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jan 08, 2007 7:23 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Start by searching here for "2058".
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
zmiti
PostPosted: Mon Jan 08, 2007 7:50 am    Post subject: Reply with quote

Newbie

Joined: 11 Sep 2006
Posts: 6

there are many result, but I´ve not found the topic for my problem. I don´t know for what solutin I should search (maybe configuration or code modification)!
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jan 08, 2007 7:52 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

It's a straight forward error.

The queue manager name you are specifying does not match the queue manager name you have connected to.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jan 08, 2007 7:57 am    Post subject: Reply with quote

Grand High Poobah

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

zmiti wrote:
I don´t know for what solutin I should search (maybe configuration or code modification)!


Hint - it's not easy to get a 2058 from a code issue.....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zmiti
PostPosted: Tue Jan 09, 2007 1:51 am    Post subject: Reply with quote

Newbie

Joined: 11 Sep 2006
Posts: 6

I´ve now identify the problem, but I don´t understand the reason. The Problem ist that the following (bold marked) configuration value is not set

Hashtable env = new Hashtable();
env.put(MQC.HOST_NAME_PROPERTY,hostname);
env.put(MQC.CHANNEL_PROPERTY,channel);
env.put(MQC.PORT_PROPERTY, new Integer(port));

env.put(MQC.TRANSPORT_PROPERTY,MQC.TRANSPORT_MQSERIES_CLIENT);

qMgr = new MQQueueManager(qManager, env);

It seems as if these property should be set only if used a local QueueManager (the IBM Simulator) and also a remote QueueManager.

Has someone any explanation for these?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jan 09, 2007 2:07 am    Post subject: Reply with quote

Grand High Poobah

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

The property in bold identifies if you're using a bindings or a client connection. Bindings can only be local and IIRC are the default. Hence if you don't specify client connection (and the relevent client parameters) the queue manager can't be found (because it's not on the local machine) and you get a 2058.

It's all in the Client & Java manuals.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zmiti
PostPosted: Tue Jan 09, 2007 2:17 am    Post subject: Reply with quote

Newbie

Joined: 11 Sep 2006
Posts: 6

where can I donwload the Client & Java, can you post the link to these document, thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jan 09, 2007 2:21 am    Post subject: Reply with quote

Grand High Poobah

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

zmiti wrote:
where can I donwload the Client & Java, can you post the link to these document, thanks


You'll find this link peppered through this forum; I'm amazed you've not stumbled over it already:

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp

If you prefer to download PDFs, try:

http://www-306.ibm.com/software/integration/wmq/library/library6x.html

Happy Reading!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » MQ Simulator for Java Developers in WSAD & Remote QueueM
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.