wood burning stoves 2.0*
The moose likes Websphere and the fly likes clearing the ejb cache in Websphere 7 ?????? 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 » Products » Websphere
Bookmark "clearing the ejb cache in Websphere 7 ??????" Watch "clearing the ejb cache in Websphere 7 ??????" New topic
Author

clearing the ejb cache in Websphere 7 ??????

eswaran Thiyagarajan
Greenhorn

Joined: Nov 15, 2011
Posts: 1


We have java application recently migrated from weblogic to websphere. We have a program to clear EJB cache in weblogic using weblogic.ejb.CachingHome. We want to do the same in Websphere. i am looking for some class file to clear the ejb cache.....



Code Snippet from current weblogic program.
Lu is array list of EJBs
Caching is instance of weblogic.ejb.CachingHome.

for ( int x = 0; x < lu.size(); x++ )
{
o = initial.lookup( (String) lu.get( x ) );
ejb = (EJBHome) o;
caching = (CachingHome) ejb;
caching.invalidateAll();
}// end for x



i Tried with the below method

env = new Hashtable();
env.put(PROPS.JNDI_CACHE_OBJECT, PROPS.JNDI_CACHE_OBJECT_CLEARED);
ctx = new InitialContext(env);


Ref: http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=%2Fcom.ibm.websphere.express.doc%2Finfo%2Fexp%2Fae%2Ftnam_develop_naming.html

but it didn't clear the cache

i am trying with the Dynacache.jar i am not able to find the way to get do it yet.......

i also came across the following

com.ibm.websphere.ejbpersistence. PMCacheInvalidationRequest

i am not able to find a jar file for this to test this........

help me with any option to clear the websphere cache through the api's.........

Application spec: websphere 7


Thanks
Eswar


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: clearing the ejb cache in Websphere 7 ??????
 
Similar Threads
jndi name in ejb3?
EJB Lookup problem from same server instance
How does CachingHome.invalidateAll() works ??
Weblogic-QL -- Resultset
CACHE INVALIDATION IN WEBLOGIC ??