dagblog.
← Archive

A Brief Introduction to Java Servlets


I spent a long time deciding whether to link to
Java Servlets: An Introduction to the Technology
by Marek Branický. I hesitated because the article hadn’t particularly grabbed me. It really is a quick introduction to the technology.
For a first look, though, it seems like a good place to start.

If you’re about to get started with Java and web technologies like JSP, or want to know what tools
 J2EE offers, you can start here. It’s a bit of a mix, but all the basics are there.

How to use a Singleton

Do you use the Singleton design pattern? In 
 
 Simply Singleton:Navigate the deceptively simple Singleton pattern 
 
, David Geary describes how to implement it in Java. This pattern comes in handy when you want:

  • A single instance of an object per application
  • A single point of access to that instance

The article shows a typical implementation and describes its pitfalls. In particular, 
 thread safety had never occurred to me. The author lays out the problems and 
 solves them directly in code, so don’t expect theory. He shows
 other ways to work with singletons, including serialization, registering a singleton for another
object, and adapting it for class loaders.

Builder has called it a day

The developer site 
 Builderhas come to a sad end. 
 About six months ago an ad offering the site for sale appeared in all its discussion groups.
 Apparently nobody got in touch, and a few days ago this brief farewell appeared on the front page:

Dear readers,
 We have stopped publishing articles on Builder.cz. 
 Our other services will continue as before.
 The extensive archive of older articles is also still available. The front page shows articles from the archive in random order, while individual sections list them chronologically. You can also find articles through their series.
 The editors

Medium version

Related articles

Related CZ Podcast episodes