|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Change system Environment variables within msgflow |
« View previous topic :: View next topic » |
Author |
Message
|
Yanghui |
Posted: Fri Aug 23, 2002 12:36 am Post subject: Change system Environment variables within msgflow |
|
|
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 |
|
 |
CodeCraft |
Posted: Fri Aug 23, 2002 11:14 pm Post subject: |
|
|
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 |
|
 |
Yanghui |
Posted: Tue Aug 27, 2002 1:47 am Post subject: |
|
|
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 |
|
 |
kirani |
Posted: Tue Aug 27, 2002 3:05 pm Post subject: |
|
|
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 |
|
 |
Yanghui |
Posted: Fri Aug 30, 2002 12:12 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|