I am using weblogic 8.1 and developed entity beans. I cached them by adding properties in the deployment descriptor. I made them read-only and invalidated them whenever there are changes to the data. it did work fine.
I implemented invalidation of the home interface using the following logic
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();
Invalidation worked fine in weblogic 8.1
-----------------------------------------
I tried to migrate the same code to weblogic 6.1 ( currently our production runs in weblogic 6.1 SP1). I had to make changes to deployment descriptors for this version , but was able to
EJB compile and deploy the application.
But whenever i do invalidate for changes, it seems to be invalidating, no errors. But it still fetches the old data. I dont get to see the new data, that i modified. The entity bean seems to be calling ejbStore() and ejbLoad(), but somehow does not get the modified data.
I think i am making some mistake, but everything looks good to me and i have no clue what changes i need to make to get this working.
Is this a feature not supported in weblogic 6.1 ?
Any help in this ???
[ January 18, 2005: Message edited by: Mohen Vijay ]
[ January 18, 2005: Message edited by: Mohen Vijay ]