How to Load the Entities on Memory ?

Hi..

I have an cmp entity bean , and whenever i calling the bean, its loading

each time in database ,and it results the performance degradation of the

page. Hence i need to keep the cmp entity on memory when the application

server starts, so that i will access the entities on memory rather than

database each time .

Tell me how to keep the entity beam (cmp) on memory when the

application server starts ?

[459 byte] By [003801082a] at [2007-11-27 1:20:25]
# 1

I am assuming that the data that you are accessing through this bean doesn't change (or changes very rarely). Consider using Read Only Entity beans for this

You can find more about this at the following links:

https://glassfish.dev.java.net/javaee5/docs/DG/beahl.html#beail

and

https://glassfish.dev.java.net/javaee5/docs/DG/beajj.html#beajj

Mahesh.Kannana at 2007-7-11 23:57:23 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Thanks for ur replay. Here I am using the Read only Entity bean. But i need to load the entity bean (Read only Entity bean ) on memory when the application server starts. ..?i.e the entity bean be loaded in memory when the starting the application server.
003801082a at 2007-7-11 23:57:23 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...