Meaningless Drivel is fun!*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 8904

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: manually call unsetEntityContext?
 
Similar Threads
unsetEntityContext and no unsetSessionContext
EJB Life Cycle
transaction context
Why session beans doesn't have unsetSessionContext()
Manually delete entity bean in memory?