|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
UUID V4 generation using ESQL |
« View previous topic :: View next topic » |
Author |
Message
|
pandapritiranjan |
Posted: Wed Sep 28, 2022 2:28 am Post subject: UUID V4 generation using ESQL |
|
|
Newbie
Joined: 28 Sep 2022 Posts: 3
|
I have a scenario where I need to generate UUID V4. I understand UUIDASCHAR function generates UUIDs using time, IP addr of integration node etc in Linux/Unix based systems.
UUID V4 are generated randomly. Does UUIDASCHAR generate UUID V4? Or everytime a UUID is generated I need to check if it conforms to the RFC 4122 specification to make sure that it is UUID V4? |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Sep 28, 2022 6:09 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Why must the UUID be precisely at V4? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
pandapritiranjan |
Posted: Wed Sep 28, 2022 7:01 am Post subject: |
|
|
Newbie
Joined: 28 Sep 2022 Posts: 3
|
The UUID must be V4 because that is a requirement of the underlying API that will be invoked by IIB. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Sep 28, 2022 8:41 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
You can programmatically extract uuid data to determine version and other information. Search google for 'how to extract uuid version number in java' or similar. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
pandapritiranjan |
Posted: Wed Sep 28, 2022 11:13 am Post subject: |
|
|
Newbie
Joined: 28 Sep 2022 Posts: 3
|
Just read my mind but I have a slightly different thought. I have thought of writing a function in Javacompute node by using the java.util.uuid package, and then invoke the java function from within the ESQL.
From what I have googled, java.util.uuid generates UUID V4 without any lengthy code. So, I will give it a try, and what you have said as well. See how it goes.
Thank you |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Sep 28, 2022 11:49 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
As you've probably discovered rfc 4122 covers a variety of versions 1,2,3,4,5,6, ... _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
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
|
|
|
|