|
OpMath | |||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
| UniqueIdGenerator | The (remote) Remote interface of the UniqueIdGenerator EJB. |
| UniqueIdGeneratorHome | The (remote) Home interface of the UniqueIdGenerator EJB. |
| Class Summary | |
| UniqueIdGeneratorBean | The business logic for the unique ID generator. |
| UniqueIdGeneratorPK | The primary key class for the UniqueIdGenerator EJB. |
An entity EJB that generates unique IDs. The EJB is implemented with Container Managed Persistence, and is accessed via a remote / remote home interface.
As for any unique id generator such as this, some consideration should be given
to the key for each unqiue id generator instance. A sensible approach is to use
a combination of client class and client machine, such as:
<client remote interface class name>:<client machine name>
for example:
com.opmath.test.j2ee.book.ContactBook:vega.opmath.com
This EJB is compatible with (and requires) an EJB 2.0 compliant container.
Package Notes:
This is a simplified version of the unique ID generator CMP EJB included in the DMLDoc version 1 examples, available from http://www.set-i.com/products/dmldoc/examples/. A similar approach to unique ID generation is discussed at TheServerSide.com. The Entity Bean Primary Key Generator discussion thread is at: http://www.theserverside.com/patterns/thread.jsp?thread_id=220.
|
OpMath | |||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||