Forum Controls
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.

NetBeans 6: Matisse Updates

NetBeans 6 delivers great updates to the Matisse GUI builder. Spend a few minutes with Roman Strobl and get an expert briefing on what's new and what has changed.

Introduction to Groovy Part 3

In this, the third and final installation of Andres' Introduction to Groovy series, you learn about how Groovy handles variable numbers of arguments, named parameters, currying, and more about Groovy operators. Including, some new operators.

Easier Custom Components with Swing Fuse

Swing Fuse (actually just Fuse), is a framework designed to make it easier to create your own custom desktop components. In this article, Daniel Spiewak shows you how to get started and provides sample source code you can download.

Benchmark Analysis: Guice vs Spring

Willam Louth shows how he uses JXInsight Probes to investigate probable performance issues with code bases that he is not familiar with. He also highlights possible pitfalls in creating a benchmark, as well as in the analysis of results.
Replies: 2 - Pages: 1  
Threads: [ Previous | Next ]
  Click to reply to this thread Reply

ServiceLocator Pattern: A History and Does EJB 3 Really Kill It Off?

At 11:35 AM on Jan 16, 2006, Matthew Schmidt wrote:

Soon, ServiceLocator will be replaced by Dependency Injection type annotations in EJB 3. However, as these annotations won’t be available to helper classes, what does this mean for your architecture?

In this article, Brandon Werner takes gives a brief history of the ServiceLocator pattern and his insight into whether EJB3 and its IOC container will really kill it off.

Read the whole article now!
1 . At 11:43 AM on Jan 21, 2006, Nils Kassube wrote:
  Click to reply to this thread Reply

Race condition in getDataSource()

There's a race condition in your getDataSource() method. If another thread puts a key in the cache after the if but before this thread's put action, you'll get an exception - but probably only under high load. Fixing is left as an exercise for the reader ;-)
2 . At 2:12 PM on Apr 27, 2006, Saravanakumar wrote:
  Click to reply to this thread Reply

Re: ServiceLocator Pattern: A History and Does EJB 3 Really Kill It Off?

How does EJB3 handle stale lookups? I still have problems with stale lookups in my cache in my ServiceLocator.

thread.rss_message