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 » Problem with MQ when setting MQEnvironment paramaters

Post new topic  Reply to topic
 Problem with MQ when setting MQEnvironment paramaters « View previous topic :: View next topic » 
Author Message
jamal
PostPosted: Thu Jun 16, 2005 2:01 pm    Post subject: Problem with MQ when setting MQEnvironment paramaters Reply with quote

Newbie

Joined: 16 Jun 2005
Posts: 2

Hi,
i have too applications running under the same java virtual machine.
One Application has access to a local Queuemanager , so no MQEnvironment parameters have to be setted.
The second Application need some MQEnvironment parameters.
The Problem when the first application try to get access the local Queue Manager, i get an MQException. Because the MQEnvironment parametrs (such as Hostname, channel ...) are setted from the second application.

How can i solve this problem?

Thanks for any Reply.
Jamal
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jun 16, 2005 2:04 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Have you tried setting up a client channel on the local QM in your JVM to allow it to communicate with the remote QM.

You should then be able to access the remote QM at the same time and possibly without MQEnvironment parms...as the communication will go through the local qmgr

But read Jeff's reply 2 down it has the better solution...

Enjoy


Last edited by fjb_saper on Thu Jun 16, 2005 2:51 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail
jamal
PostPosted: Thu Jun 16, 2005 2:34 pm    Post subject: Reply with quote

Newbie

Joined: 16 Jun 2005
Posts: 2

Thanks for the quick reply,
this will be a good solution, but the problem is:
the one application has to run a many instances of webapp. On with a local MQ and one without MQ.
I there an alternative solution for the problem?
Thanks and Best regards.
Jamal
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jun 16, 2005 2:39 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Set the values you need.

Open a connection.

Store the connection variable.

Set the values you need.

Open a new connection.

Store the connection variable.

Or, you know, learn what "thread" means in programming.
_________________
I am *not* the model of the modern major general.
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 Java / JMS » Problem with MQ when setting MQEnvironment paramaters
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.