[jboss-dev-forums] [Design of JBoss Transaction Services] - Re: TransactionManager and AS' ServiceBindingManager

adrian@jboss.org do-not-reply at jboss.com
Wed Oct 1 08:33:20 EDT 2008


"jhalliday" wrote : 
  | As long as it returns a value 0-65535 that's uniq in the scope of the O/S it's running on it should be possible to plug it in without too much hassle.

But that's the problem. Its relatively easy to generate a String that is unique,
generating a number that is unique is a lot harder to do.

Why does it have to be a number between 0x0000 and 0xFFFF?

>From the other thread:
anonymous wrote : 
  | The SocketProcessId is basically a kludge to get a uniq number (the port number) for use in Uids, in place of the ability to get the process id, which you can't do from Java. 
  | 

So why can't we plugin our own UID implementation directly?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179775#4179775

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179775



More information about the jboss-dev-forums mailing list