Home » Author Archives: Roger Hughes (page 2)

Author Archives: Roger Hughes

Tracking Application Exceptions With Spring

spring-interview-questions-answers

A few weeks ago a colleague asked me to spend a week doing a support role as he needed cover whilst he took a well earned holiday and he couldn’t find anyone else. As I’d just completed a particularly complex coding project and was feeling a little burnt out, I said ‘yes'; after all the change would do me good. ...

Read More »

Optimising Your ApplicationContext

spring-interview-questions-answers

There’s a problem with Spring, it’s been there for some time and I’ve come across it in a number of projects. It’s nothing to do with Spring, or the Guys at Spring, it’s down to Spring’s users like you and me. Let me explain… In the old days of Spring 2 you had to configure your Application Context by hand, ...

Read More »

Publish and Subscribe with Hazelcast

hazelcast-logo

A few weeks ago I wrote a blog on getting started with Hazelcast describing how ludicrously simple it is to create distributed maps, lists and queues. At the time I mentioned that Hazelcast does quite a few other things besides. This blog takes a quick look at another of Hazelcast’s features: its broadcast messaging system based on the Publish/Subscribe pattern. ...

Read More »

Investigating Memory Leaks Part 2 – Analysing the Problem

java-logo

The first blog in this mini-series looked at creating a very leaky sample application, so that we can investigate techniques for solving heap based problems on server applications. It demonstrates the big problem with the Producer-Consumer pattern, namely that the consumer code has to be able to remove items from the queue at least as fast, if not faster than, ...

Read More »

Investigating Memory Leaks Part 1 – Writing Leaky Code

java-logo

I found this little problem the other day: there’s this server that runs for a while and then falls over. It’s then restarted by its startup script and the whole process repeats itself. This doesn’t sound that bad as it isn’t business critical although there is a significant loss of data, so I decided to take a closer look and ...

Read More »

Getting Started with Hazelcast

hazelcast-logo

In July I wrote a blog introducing erlang to Java developers, highlighting some of the similarities and differences between the two languages. The erlang virtual machine has a number of impressive, built-in features, one of which is that they are location independent and can talk to each other. This means that that data can be synchronised between VMs by writing ...

Read More »

Tomcat’s Graceful Shutdown with Daemons and Shutdown Hooks

apache-tomcat-logo

My last couple of blogs have talked about long polling and Spring’s DeferredResult technique and to demonstrate these concepts I’ve shoehorned the code from my Producer Consumer project into a web application. Although the code demonstrates the points made by the blogs it does contain a large number of holes in its logic. Apart from the fact that in a ...

Read More »

Long Polling with Spring 3.2’s DeferredResult

spring-interview-questions-answers

In our last episode, the CEO of Agile Cowboys Inc had just hired a Java/Spring consultant by giving him the Porsche that he originally bought for his girlfriend. Being upset by the loss of her prize Porsche, the CEO’s girlfriend has told his wife of their affair. His wife, after cutting up the CEO’s suites has filed for divorce. Meanwhile ...

Read More »

Long Polling Tomcat with Spring

apache-tomcat-logo

“Ooh err Missus” as comedian Frankie Howerd would have said, but enough of British innuendo and double entendre because Long Polling Tomcat isn’t some kind of sexual deviance with next door’s moggy, it’s a technique (or more of a hack) that’s been developed as a result of Steve Jobs’s refusal to support Adobe Flash Player on the iPhone and iPad. ...

Read More »

Erlang for Java Developers

erlang-logo

You probably haven’t noticed, but it’s a couple of weeks since I last posted a blog. There is reason for this is that I’ve ruptured my Soleus and my leg is in a plaster cast. Being immobile I thought that it would be a good idea to investigate something totally different – it was either that or watch day time ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close