This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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

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.

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: manually call unsetEntityContext?
It's not a secret anymore!