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 » UUID V4 generation using ESQL

Post new topic  Reply to topic
 UUID V4 generation using ESQL « View previous topic :: View next topic » 
Author Message
pandapritiranjan
PostPosted: Wed Sep 28, 2022 2:28 am    Post subject: UUID V4 generation using ESQL Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Wed Sep 28, 2022 6:09 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9392
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
View user's profile Send private message
pandapritiranjan
PostPosted: Wed Sep 28, 2022 7:01 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Wed Sep 28, 2022 8:41 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9392
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
View user's profile Send private message
pandapritiranjan
PostPosted: Wed Sep 28, 2022 11:13 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Wed Sep 28, 2022 11:49 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9392
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
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 » UUID V4 generation using 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.