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 » Change system Environment variables within msgflow

Post new topic  Reply to topic
 Change system Environment variables within msgflow « View previous topic :: View next topic » 
Author Message
Yanghui
PostPosted: Fri Aug 23, 2002 12:36 am    Post subject: Change system Environment variables within msgflow Reply with quote

Disciple

Joined: 08 May 2002
Posts: 151
Location: Dublin, Ireland

Hi,

The IBM SupportPac IA06 (Get All Environment Variables Plug In) can help to construct outgoing message by using environment variables. I am wondering if it's possible to reset environment variables within msgflow. Any idea or suggestion would be appreciated. Thanks.

Regards
-Yanghui
Back to top
View user's profile Send private message Send e-mail
CodeCraft
PostPosted: Fri Aug 23, 2002 11:14 pm    Post subject: Reply with quote

Disciple

Joined: 05 Sep 2001
Posts: 195

I don't know of any easy way to do this. Why do you need to do it, and, who are you working for in Dublin?
Back to top
View user's profile Send private message
Yanghui
PostPosted: Tue Aug 27, 2002 1:47 am    Post subject: Reply with quote

Disciple

Joined: 08 May 2002
Posts: 151
Location: Dublin, Ireland

Hi, there,

Sorry for late reply.

In my message flow, I need to generate unique identifiers for the messages created from my msgflow for those downstream applications. It's a kind of numbering mechanism. At beginning, I thought of using database table but it doesn't worth it if the db connection and tables have to be maintained just for these sequences. The second obvious option is to use file but there is no direct way to access files in msgflow. The idea was dismissed. The third possible way is to use system environment variables but it's still useless if I can't change them in msgflow. Now I am coming to the better solution of using queue with attribute maxqdepth as 1 to store my next unique ID. Although Some corners need to be covered for this approach, it's really not bad.

I am working on one project for the Bank of Ireland. Why?

Regards
-Yanghui
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Tue Aug 27, 2002 3:05 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Yanghui,

With the queue approach you will have problems if you are running multiple instances of the message flow.

Have you thought about uuidaschar and TIMESTAMP functions to generate unique identifier?
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Yanghui
PostPosted: Fri Aug 30, 2002 12:12 am    Post subject: Reply with quote

Disciple

Joined: 08 May 2002
Posts: 151
Location: Dublin, Ireland

Thanks for your reply, Kiran,

You are right that I couldn't run multiple instances because of using queue to store sequence number. I never think of using uuid in my msgflow for its binary characteristics. If I go for TIMESTAMP, I won't get the sequence effect. All those restrictions forced me to store my numbering outside of msgflow.

Any more suggestion? Thanks in advance.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Change system Environment variables within msgflow
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.