I am new to EJB and i have a problem with EJB utilized in my project.I have a requirement in my project that as soon as our system i.e our project system starts i need to have certain objects in memory which hold values from database tables and remain in memory till the system is stopped.
My question is are entity beans(CMP or BMP) the answer to this requirement? because from what i see is that after entity beans are looked up and a transaction is done they are removed from memory(not immediately but after passivation it seems according to LRU algorithm by container).The problem is that they don't become memory objects as i don't want them to be removed from memory.
I am confused about this
.I hope someone can guide me on this.Thanks in advance.