"birwin" wrote:
I attempted to implement this code, but my code throws an error and complains that the ObjectName class does not have a flushCache method. The fully qualified name of my ObjectName is javax.management.ObjectName. Does JBoss subclass ObjectName? If not, why might I be getting this error?
raja05, thanks for your help. It turns out I accidentally placed the EJB in the ejb-jar file as a session bean. The MBean class was a StatelessSessionContainer. After I changed the deployment descriptor to instead of I was able to flush the cache. Thank you for your help. Your suggestions led me to the problem.