|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| request identifier not unique | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | veda | 
			  
				|  Posted: Tue Mar 08, 2011 7:50 am    Post subject: request identifier not unique |   |  |  
		  | Novice
 
 
 Joined: 01 Dec 2010Posts: 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 |  |  
		  |  |  
		  | lancelotlinc | 
			  
				|  Posted: Tue Mar 08, 2011 10:29 am    Post subject: |   |  |  
		  |  Jedi Knight
 
 
 Joined: 22 Mar 2010Posts: 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 |  |  
		  |  |  
		  | veda | 
			  
				|  Posted: Tue Mar 08, 2011 10:33 am    Post subject: |   |  |  
		  | Novice
 
 
 Joined: 01 Dec 2010Posts: 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 |  |  
		  |  |  
		  | lancelotlinc | 
			  
				|  Posted: Tue Mar 08, 2011 10:37 am    Post subject: |   |  |  
		  |  Jedi Knight
 
 
 Joined: 22 Mar 2010Posts: 4941
 Location: Bloomington, IL USA
 
 |  |  
		  | Back to top |  |  
		  |  |  
		  | mqjeff | 
			  
				|  Posted: Tue Mar 08, 2011 11:17 am    Post subject: |   |  |  
		  | Grand Master
 
 
 Joined: 25 Jun 2008Posts: 17447
 
 
 | 
			  
				| One could always use MbSQLStatement to call out to UUIDASBLOB or UUIDASCHAR... 
 Likely, at least.
 |  |  
		  | Back to top |  |  
		  |  |  
		  | veda | 
			  
				|  Posted: Tue Mar 08, 2011 3:22 pm    Post subject: |   |  |  
		  | Novice
 
 
 Joined: 01 Dec 2010Posts: 24
 
 
 | 
			  
				| Thank you, I will try to implement. |  |  
		  | 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
 
 |  |  |  |