Other than reducing the entity bean pool size using admin console, is there any other way to manually delete the allocated entity bean from the memory? I dont want to call ejbRemove bcos it will delete my actual record from database. What i want is after completed a certain functions, and i am pretty sure that the entity bean which i allocated in those functions are 100% no longer to be used and would like to free them from memory....
before knowing that just call the method & see inside session bean..whether instance can be manually sent to the pool. I guess EJBRemove() removes the instance & not from DB. Pls. call this as well from your session bean & see.. Pls. write your results here as well...
Originally posted by yik yang: Other than reducing the entity bean pool size using admin console, is there any other way to manually delete the allocated entity bean from the memory?
Is there any particular reason you don't want to do this ?
Originally posted by Pradeep Bhat:
The db row is removed but not the bean form memory. You can manually delete a bean throw SystemException.
Actually the bean will be removed from the memory but the app server may replace it with another upon request, so the as long as the pool size mentions x beans there is a good chance x number will be mailtained in the mmemory.