Typeaheadmap Demo

Follow up on a previous post

A simple guide and demo for typeaheadmap on github pages

Logback and webapplications

Lately I prefer to use Logback for logging purposes. Logback natively supports slf4j, a log abstraction api through other logging frameworks all can log to a logging framework of your choice.
When using logback in webapplication and you want your logging configuration file outside of your app you can set a systemproperty to point to the location.
However if you want it configured like you are used to do with Spring, log4j and the log4j servletcontext listener, you have to write the context listener yourself.
It’s a bit silly to do that again for every webapplication. So here it is, the logback-webfragment.
The logback-webfragment is a Servlet 3.x webfragment configered to be loaded before other fragments. It takes a location from a web.xml configparameter and loads the configuration from there. Optionally you can add another context parameter to enable one of the 5 default configurations I’ve added.
The idea for the code of the listener is taken from this ticket in logbacks issuetracker. Currently logback-webfragment will only work for Java 1.7 and higher. The maven artifact name is named aaa-logback-webfragment. The aaa is there to increase the chance that the webfragment is loaded before others that are also configured to be loaded first.
In analogy to logback itself the webfragments license is EPL. It is not yet in maven central repo. Maybe I have to test it a bit more.

JRebel 5.0

Yeah JRebel 5 is there.

If you work with Eclipse the first thing you notice is the improved integration. You no longer manually have to generate the rebel.xml file. Activating the rebel on a project only requires 1 click, saving you more time to code. Not that much more but it’s much more convenient and easier to deploy.

Also the remote and livedeploy integration seems really improved. I regret that I can’t really use it at the moment to test it out. At my current employer they stick to old school building.

I even have trouble to convince the developers to try out JRebel, 2 tried it, then got back to waiting on deployments and restarts don’t know why. Although it’s currently saving me between 11 to 15h each 30 days. Maybe I’m more nerd/geek than them, way more.

Every developer should give it a try!