Author |
Message
|
Prasi |
Posted: Wed Nov 06, 2013 10:45 am Post subject: varaible unique to an instance |
|
|
Apprentice
Joined: 03 Aug 2011 Posts: 42
|
Hi,
Is there are any variables that are unique to an instance of a message flow like thread id? ProcessId is the unique to an execution group. But dow e have any properties that is/are unique to an instance of a flow? |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Nov 06, 2013 10:46 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
If we say Yes, and say it's documented, what then?
If we say No, and say it's documented, what then? |
|
Back to top |
|
 |
Prasi |
Posted: Wed Nov 06, 2013 10:51 am Post subject: |
|
|
Apprentice
Joined: 03 Aug 2011 Posts: 42
|
I went through the Help contents and couldnt find any and thats why I have posted in this forum to check if there are any. |
|
Back to top |
|
 |
gs |
Posted: Thu Nov 07, 2013 12:33 am Post subject: |
|
|
 Master
Joined: 31 May 2007 Posts: 254 Location: Sweden
|
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Nov 07, 2013 12:46 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Can you please enlighten us as to why you want to know this information? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Prasi |
Posted: Thu Nov 07, 2013 11:28 am Post subject: |
|
|
Apprentice
Joined: 03 Aug 2011 Posts: 42
|
I need to get the thread id for each each thread and based on that I have certain design to perform. if thread id doesnt work, what else can ne used. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Nov 07, 2013 11:36 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Prasi wrote: |
I need to get the thread id for each each thread |
That doesn't answer the question of why you want it.
Prasi wrote: |
if thread id doesnt work, what else can ne used. |
Doesn't work for what? Can be used for what? How can we answer that without knowing what you're using it for? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Nov 07, 2013 11:43 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
How about a UUID?
The ID will change for each message being processed. It is not like a thread that is controlled by a program. Please don't try to think of and use the thread ID like it was a C/C++ Thread ID (or similar constructs in different languages)
Look up getUUID in the documentation.
If you can't use a UUID then may I humbly suggest that you go back to whoever gave you this task and ask them to think again about the usefullness of a thread ID in a Broker message flow. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Esa |
Posted: Thu Nov 07, 2013 10:30 pm Post subject: |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
@Prasi
Even double posting won't help unless you can give us some background information about your seemingly absurd requirement. |
|
Back to top |
|
 |
|