Second edition of the famous “Core J2EE Patterns” is on the bookshelves.

It’s really a sweet looking item - I snapped it up as soon as I caught sight
of it at a local Border’s. Brand new hardcover binding (as opposed to a
paperback 1st edition) assured it a spot in-between Gang of Four’s
“Design Patterns” and Fowler’s “Refactoring” on my bookshelf.

A word to the wise though about the ServiceLocator section -
BE CAREFUL about caching JMS ConnectionFactory and Queue references!

These can cause you some major pain on WL7 (maybe others?)…
especially if your Producers go down.

Unless you have a good mechanism for cleaning out problem references,
you might be better off not caching these in the first place
(unless you can’t effort the performance hit)

This is one pattern that should come with an asterisk.