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 » Unique Transaction Number

Post new topic  Reply to topic Goto page Previous  1, 2
 Unique Transaction Number « View previous topic :: View next topic » 
Author Message
harish_td
PostPosted: Mon Aug 24, 2009 5:59 pm    Post subject: Reply with quote

Master

Joined: 13 Feb 2006
Posts: 236

UUIDASCHAR generates a 36 character string , you could trim the last 5 characters and hope as hell that this function does not generate a duplicate ending 5 characters in one day.

Try to fiddle around with the rand function in java and invoke a JCN to get this value. Since rand generates numeric only values you can google around for links like this
http://stackoverflow.com/questions/41107/how-to-generate-a-random-alpha-numeric-string-in-java

All other scalability issues with such a small seed still remain.
Just my 0.02$[/b]
Back to top
View user's profile Send private message Yahoo Messenger
latitude
PostPosted: Tue Aug 25, 2009 1:53 am    Post subject: Reply with quote

Apprentice

Joined: 17 Aug 2009
Posts: 36

jbanoop wrote:
Just trying to understand option #3, the message in the queue would always contain the latest transaction # is it ? And every time you consume, you create a new message with the incremented value of the counter and place it on the queue again ?



Create a another broker flow or external program which will run every x number of minutes and creates x number of messages with a unique transaction number and place them in a queue.

The other broker flows which requires a transaction number could use a MQGet to consume a transaction number.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Unique Transaction Number
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.