Caching with AspectJ

In my last post I presented a very simple cache that stores objects. Now I want to use this cache with AspectJ in a small sample application.

You can download the Eclipse project as a tar or zip file or browse the code online here.

Continue reading →

Implementing a simple cache with Java

In this post I’ll present a simple cache written in Java. It can be used to store objects of any kind or specific types only. The objects will expire after a certain time that can be customized too. Since this cache is really simple I didn’t implement a caching strategy nor an option for a maximum capacity.

You can download the Eclipse project as tar or zip or browse the code online here.

Continue reading →

Monitor and administer Apache Tomcat with Lambda Probe

If you want to monitor and administer web applications that’re running inside Apache Tomcat you should have a look at Lambda Probe: it’s a small WAR that can be dropped inside your Tomcat instance and once you’ve done that you can use it to perform administrative tasks.

Continue reading →

Suppress logging for Velocity

If you don’t want Velocity to log anything, you can change its default logging behavior. All you have to do is to implement an interface and set a property before you call Velocity.init().

Depending on the version of Velocity you’re using you’ll have to implement either LogSystem or LogChute.

Continue reading →