hi,

I created a simple UniqueId entity bean that increments its value (singleton, BMP) to 
achieve this. Not the fastest solution but works well with infrequent inserts.

Other solutions are discussed in 
http://theserverside.com/resources/patterns_optimizations_roman.pdf

cheers

>>> Blasius Lofi Dewanto <[EMAIL PROTECTED]> 15/06/00 21:12:38 >>>
Hi all,

I just wonder, whether someone can help me...

How can I implement a counter or a unique id
for my PrimaryKey in EJB? Because I don't want
to take care about it in my EJB.

Another question:
When I quit from the EJBServer through the JonasAdmin,
I always get this exception:
Cannot unbind Datasources: java.lang.ClassCastException
Is this normal?

Thank's a lot!
-- 
---------------------------------------------------
Blasius Lofi Dewanto
---------------------------------------------------
OpenUSS - Open Source University Support System
          http://openuss.sourceforge.net 
---------------------------------------------------


__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de 
Yahoo! Auktionen - gleich ausprobieren - http://auktionen.yahoo.de 

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to