Tag Archives: java

Spock – Starting your trek

Ready to add a little diversity to your Java testing? The Spock framework could be a good place to start. Continue reading

Java – Monitoring your PermGen space

Java OutOfMemory: PermGen space errors are a nasty surprise that may be lurking in your freshly deployed applications. Here we look at a couple of ways to keep an eye on your PermGen usage. Continue reading

Java Web Apps – Running regular background tasks

Wrapping a ScheduledThreadPoolExecutor with a servlet context listener provides a great, lightweight way to run regular background tasks in a Java web application. Continue reading

CXF – Adding security by IP whitelisting

Creating a simple Interceptor class to enforce IP address based security for an Apache CXF web-service Continue reading

CXF – Java first web services with existing JAXB classes

If you’re exposing existing Java code containing JAXB generated value objects as a Java First JAX-WS web-service with Apache CXF you might run into an unexpected problem. Continue reading

Java – Whitelisting IP subnets

Whitelisting IP subnets rather than individual addresses can alleviate some of the drudge of managing your security configuration. Continue reading

JUnit – Skipping tests with unavailable resources

If your unit tests depend on external resources they’re going to fail from time-to-time when those resources aren’t available. Here we look at a few options for preventing your build from breaking. Continue reading

Java – Simple Server Stubbing

When a Java Class Under Test makes HTTP calls that are tricky to mock, the Simple framework offers a neat alternative for a self-contained stub. Continue reading

Java – Generic factories

An example of using generics to tie together the return type of a Java factory method with its parameters. Continue reading