Re: Can I assign a ServiceID myself?
John McClain <[email protected]> Sat, 17 Jan 2009 22:52:24 -0500
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
John McClain wrote: > Bryan Thompson wrote: >> Hello, >> >> I am using a non-persistent reggie. I have been waiting to be >> discovered and then taking the assigned ServiceID. However, I am >> wondering if I can assign a random ServiceID myself. > > yes you can (I don't have the source handy, but I think the contributed > services work this way now) [... John rummages through laptop looking for Jini source code ... emerges victorious with a beat up folder...] When Outrigger comes up it uses UuidFactory.generate to create a Uuid (persistent outriggers will persist this Uuid and re-use it on restart), and then uses Uuid for the ServiceID, as the value that defines proxy equality Outrigger's top level proxy, admin proxy, and transaction participant proxy, and in its leases to implement Lease.canBatch. 4DF0ECDB-D13E-48CB-9A8B-EFB95EEA9A25 -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected]