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.

Systems Integration

Winstone: The Smaller, Faster, Lighter Servlet Container

A few years ago Bruce Tate and Justin Gehtland wrote a book entitled Better, Faster, Lighter Java.  In this book they argue that sometimes a simpler solution is the right answer.   As developers we often become attached to our "Golden Hammer" and try to use it for every purpose.  Large Java EE containers such as Weblogic, JBoss and WebSphere have a place in our toolbox, but sometimes what you need is a simple container which starts quickly and has a small footprint. 

Kicking the Tires on Vivisimo Velocity

Recently I oversaw an internal development effort to integrate Vivisimo's Velocity search engine into Microsoft SharePoint and JBoss Portal.  CapTech has experience with several search products and many have the same integration challenges.  We found that Velocity's architecture simplifies or eliminates many of these challenges.  Here are just a few great features that we leveraged in this project.

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:

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:

WebLogic Portal 10.x Solutions - HTTP/HTTPS Mixed Content Issue

Thanks to Andy Pemberton for helping me with this one.  It definitely had me confused for a couple days.  This issue is specific to IE and only presents itself when you are exposing your portal over HTTP, but are accessing through an HTTPS load balancer or web server.  The result is a mixed content popup from IE everytime you access a page.  This is caused by an iframe shim being inserted by WebLogic portal for the automatic menu navigation.  The fix is easy and straightforward, but finding the solution was not as easy.

To fix this issue, navigate in your Portal Web project to the Merged Project Content "virtual" directory in Eclipse which should be directly under the Portal Web project when viewing in the Portal perspective.  Under that directory, navigate to framework -> skins -> bighorn -> msie.  Right-