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 » request identifier not unique

Post new topic  Reply to topic
 request identifier not unique « View previous topic :: View next topic » 
Author Message
veda
PostPosted: Tue Mar 08, 2011 7:50 am    Post subject: request identifier not unique Reply with quote

Novice

Joined: 01 Dec 2010
Posts: 24

Hi All,

We are using the http request identifier as a unique value for the transactions, it is being repeated some times after a day or two.

Is the request identifier not unique? I have read in previous posts that the request identifier is being reused in Version 6.1 , I am using 7.0.2 Version.
Is it still the same?

Thank You!
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Mar 08, 2011 10:29 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

The http request identifier is not guaranteed to be unique forever. If you are storing these in a database for future replay or audit, do not use the http request id as the primary key.

If you need a primary key, let the database increment one for you or use a UUID. If you need help generating a UUID, let me know, and I'll post the code.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
veda
PostPosted: Tue Mar 08, 2011 10:33 am    Post subject: Reply with quote

Novice

Joined: 01 Dec 2010
Posts: 24

lancelotlinc wrote:
The http request identifier is not guaranteed to be unique forever. If you are storing these in a database for future replay or audit, do not use the http request id as the primary key.

If you need a primary key, let the database increment one for you or use a UUID. If you need help generating a UUID, let me know, and I'll post the code.


Thanks alot for your reply....

It would be grateful if you post the code to generate a UUID in java.

I have to check with my team, whether I can use this or not.

Thanks once again!
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Mar 08, 2011 10:37 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

http://download.oracle.com/javase/1.5.0/docs/api/java/util/UUID.html

Code:
UUID uniqueId = UUID.randomUUID();

_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Mar 08, 2011 11:17 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

One could always use MbSQLStatement to call out to UUIDASBLOB or UUIDASCHAR...

Likely, at least.
Back to top
View user's profile Send private message
veda
PostPosted: Tue Mar 08, 2011 3:22 pm    Post subject: Reply with quote

Novice

Joined: 01 Dec 2010
Posts: 24

Thank you, I will try to implement.
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 » request identifier not unique
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.