Hi, everyone:

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!

BTW, I got thousands lines of the message "Calling the next invoker in
runInvoke". Hope this might help you figure out the problem.

Sean









_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to