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

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-

Remote EJBs and Seam 2.2.0 Injection

In this blog I'm going to talk about using remote EJBs that are contained in a seperate deployment than your Seam 2.2.0 components.  Note that for accessing local EJBs in the same EAR there's a much simpiler way to go about it, detailed in the Seam documentation.  For discrete deployments however, say, a WAR and an EAR, we need to do some plumbing to take advantage of Seam's bijection features.