Hi!
Sean Han wrote:
> I have a piece of code in EJB client which looks like this:
>
> ============================================
> PersonnelHome home = (PersonnelHome)
> PortableRemoteObject.narrow(ref,PersonnelHome.class);
>
> for( Enumeration people=home.findAllPersonnels();
> people.hasMoreElements(); ){
> Personnel person = (Personnel)people.nextElement();
>
> System.out.println("ID: "+person.getId());
> System.out.println("First Name: "+person.getFirstName());
> System.out.println("Last Name: "+person.getLastName());
> }
> ============================================
>
> Because I got 7000+ personnel records in database, the system swap
> the memory a lot to allocate all the 7000+ beans in memory. I believe
> that telling EJB container to release some beans would provide some
> help. Can anyone tell me how to ask EJB container to release a bean
> when I don't need it any more. Thanks!
You should choose the RandomPassivationCache in your container
configuration. We will soon be releasing updated caches that work much
better in this regard.
/Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]