custom MBean

Mar 05 2010

Programmatically Purging EHCache in WLST

In my previous blog, we discussed how to locate MBeans within the custom tree.  We're going to piggy back that discussion and show how to purge an EHCache MBean by executing the removeAll() operation.

For reference, let's see the findMBean() helper method we defined previously:

Read More

Mar 05 2010

Finding Custom MBeans in WLST

My collegue Ron DiFrango recently wrote a blog about exposing custom MBeans within the WebLogic container.  Both Ron and myself experienced similar frustrations when trying to work with custom MBeans and his blog is a must read if you're having difficulty finding yours.

Once the container is setup as directed in Ron's blog, you'll quickly notice that several of WLST's APIs for navigating do not work in the custom tree; most notably is the find API.  The lack of a find API is especially troubling when you have MBeans such as ones for EHCache that use the memory location as part of the unique identifier, for example:

Read More

 

Disclaimer

The words and opinions expressed here are those of each article's respective author, and do not necessarily represent the views of CapTech Ventures.