Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "manually call unsetEntityContext?" Watch "manually call unsetEntityContext?" New topic

manually call unsetEntityContext?

yik yang

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: 8920

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.

Have you tried LearnNowOnline?
subject: manually call unsetEntityContext?