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 » WebSphere Message Broker (ACE) Support » Can you change Database connectivity Automatically in ESQL

Post new topic  Reply to topic
 Can you change Database connectivity Automatically in ESQL « View previous topic :: View next topic » 
Author Message
mqmaniac
PostPosted: Tue Jan 17, 2006 4:45 pm    Post subject: Can you change Database connectivity Automatically in ESQL Reply with quote

Master

Joined: 27 Dec 2005
Posts: 201

I am trying to move a WMQI 2.1 Message Flow to different environments.

Is it possible in Esql Code to detect the name of the Broker on which the Flow has been deployed.I want my Flow to detect the broker name and connect to the appropriate Database automatically.

I just want to know if it is possible with MQMD properties?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jan 17, 2006 4:56 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

It's not possible with ESQL.

Unless you can take advantage of your QM name. And even that isn't necessarily going to be in your MQMD.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JT
PostPosted: Tue Jan 17, 2006 5:15 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

If your configuration is such that one server supports a single broker environment, then it's possible to:
  • Set a system environment variable, say BRKENV, on the broker server to identify the supported environment (dev, int, uat, prod).
  • Within the message flow add the IA06 Get All Environment Variables plug-in to retrieve that value. The value is assigned to a special ENV tree.
  • In your ESQL code interrogate the value Root.ENV.BRKENV to determine the environment and subsequent database.
Back to top
View user's profile Send private message
mgk
PostPosted: Wed Jan 18, 2006 2:58 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Just in case you are planning to move, this is possible from ESQL in Message Broker V6.

Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
mqmaniac
PostPosted: Wed Jan 18, 2006 3:52 pm    Post subject: Reply with quote

Master

Joined: 27 Dec 2005
Posts: 201

Thanks for your replies.When i tried to download the plugin it says tht it can be used only for V5.0 and above.

I would be great help,if you give me the reply in more detail.

I am looking for Strong Confirmation whether its possible or not as i plan to change the flow design if its not.

Thanks





JT wrote:
If your configuration is such that one server supports a single broker environment, then it's possible to:
  • Set a system environment variable, say BRKENV, on the broker server to identify the supported environment (dev, int, uat, prod).
  • Within the message flow add the IA06 Get All Environment Variables plug-in to retrieve that value. The value is assigned to a special ENV tree.
  • In your ESQL code interrogate the value Root.ENV.BRKENV to determine the environment and subsequent database.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jan 18, 2006 3:54 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

It's absolutely not possible in v2.1 or v5 without a plug-in.

If you ask the author of the Cache plugin, they may have a copy of the v2.1 compatible plug-in still around and can provide it to you.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mqmaniac
PostPosted: Wed Jan 18, 2006 4:17 pm    Post subject: Reply with quote

Master

Joined: 27 Dec 2005
Posts: 201

Can you please give me somemore details regarding the plug-in,as where to find it or buy it and any documents on how to use it.

Thanks a lot!



jefflowrey wrote:
It's absolutely not possible in v2.1 or v5 without a plug-in.

If you ask the author of the Cache plugin, they may have a copy of the v2.1 compatible plug-in still around and can provide it to you.
Back to top
View user's profile Send private message
JT
PostPosted: Wed Jan 18, 2006 4:40 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Click on the text ' IA06 Get All Environment Variables plug-in' in my previous post.
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Jan 18, 2006 6:58 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
Click on the text ' IA06 Get All Environment Variables plug-in' in my previous post.

And when you look at the contained manual, it states:
Quote:
This SupportPac provides a plug-in node to be used with the IBM WBI Message Broker V5 and above

mqmaniac, who has already downloaded this and found the same quote, is looking for a V2.1 copy.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 » WebSphere Message Broker (ACE) Support » Can you change Database connectivity Automatically in ESQL
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.