Hi all, My problem is something like this: I have a stateful session bean which also write to the database. But before writing to the database, it has to get a unique id which is assigened by an object UniqueIdAllocator. Now, my problem is about the implementation of this UniqueIdAllocator. 1. The straightforward way is to implement this as an entity bean. But, i guess this may not be very good performance wise. 2. Is it possible to use the EJBContext in some way. Can UniqueIdAllocator be implemented as a session bean (stateful or stateless ) and can LatIdAllocated become a part of contextinformation, which can be changed after each allocation. My major concerns in this implementaion are: (i) can i change context information thru bean code and (ii) is the context information shared across various instances of this bean. If there are any other ways of implementing this. any ideas, suggestions are most welcome, thanks, shelly =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
