This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How does CachingHome.invalidateAll() works ??

 
Vicky Mohan
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey All,

I have the following code in my application running under weblogic 8.1

import javax.naming.InitialContext;
import weblogic.ejb.CachingHome;
Context initial = new InitialContext();
Object o = initial.lookup("CustomerEJB_CustomerHome");
CustomerHome customerHome = (CustomerHome)o;
CachingHome customerCaching = (CachingHome)customerHome; customerCaching.invalidateAll();

Can anybody explain if any factory methods in entity bean are getting called when invalidateAll() gets calls ??

If not, how is the implementation done to invalidate the entity beans in cache. I do understand weblogic takes care of it, even across multiple servers, but just curious about the way its done ..

Any help will be appreciated
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic