|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Problem with MQ when setting MQEnvironment paramaters |
« View previous topic :: View next topic » |
Author |
Message
|
jamal |
Posted: Thu Jun 16, 2005 2:01 pm Post subject: Problem with MQ when setting MQEnvironment paramaters |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Jun 16, 2005 2:04 pm Post subject: |
|
|
 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 |
|
 |
jamal |
Posted: Thu Jun 16, 2005 2:34 pm Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Thu Jun 16, 2005 2:39 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|