mandag den 6. august 2012

The fantastic Grep Console eclipse plugin

One of the most usefull plugin I have found for Eclipse is the Grep Console eclipse plugin.

When i run JBoss in JBDS (a fantastic IDE from Jboss based on Eclipse), the console window get spammed when I get an exception, and its hard to find the code I'm interested in.

But then I found Grep Console and now I can paint in my console using simple regex patterns. It even have a nice config view that helps build the regex pattern. It makes locating packages from my code MUCH faster.


Image from Grep Console user guide displaying some of the default pattern and coloring.

torsdag den 2. august 2012

Classes in Seam 2 hot folder makes page load real slow

Seam 2 hot deploy is cool. It make sure that all seam beans in the hot folder is reloaded if changed. All Seam beans in the src/hot folder get reloaded runtime by seam, unless they are annoteted with @BypassInterceptors. This is cool compared to restarting the server.

But as you add classes to the hot folder it gets slower and slower to reload a page, and by the time you reach 400+ it added about 4-10 seconds to every page call. Of cause this only apply to the development build of seam, because in the live configuration all classes end up in the same normal non hot deploy folder and causes no problem.

The solution for me was to move all classes from hot to the main folder, and then have JRebel take care of the class reloading. This have the added value JRebel can reload all classes, even seam beans annotated with @BypassInterceptors.

It works like a charm, and the new version 5 is dead easy to set up in eclipse.