Hi,
We have a requirement for a number of static data types in our project.
Each type of static data will be provided by a read-only entity bean. I
want to ensure that only one instance of an entity bean is created so that
we do not have multiple entity beans of the same type polling the database
for the same data.
To accomplish this, I was thinking of creating a PK class for each entity
bean that no matter what ID you pass to it it will treat it as the same.
Therefore the EJB server will not create a new instance of the entity bean -
it will simply return the existing one.
Is this an okay strategy?
Thanks,
Myles Jeffery
===========================================================================
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".