GeeCON Prague 2014*
The moose likes EJB and other Java EE Technologies and the fly likes manually call unsetEntityContext? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "manually call unsetEntityContext?" Watch "manually call unsetEntityContext?" New topic
Author

manually call unsetEntityContext?

yik yang
Greenhorn

Joined: May 30, 2002
Posts: 6
Hi, then can i know how to manually call unsetEntityContext? I dont want to call ejbRemove but my ejbRemove will delete the actual data in database.
What i want is to manually destroy the entity object in memory. So can i call unsetEntityContext? And how to call it?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

You can manually call the unsetEntityContext method but this will not destroy the bean from memory. You can try reducing the enity bean pool size using admin console. I havent tried this.


Groovy
 
GeeCON Prague 2014
 
subject: manually call unsetEntityContext?