[REVIEW] Fixes for issues 294 and 295

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Mon, 15 May 2006 16:54:16 -0700

This change bundle addresses both issues 294 and 295. The same change
bundle is attached to both issues,
so no need to waste time reviewing both.

Also, once this is committed, you will have to add the following
system property to your GlassFish domain.xml
If you don't add this property, the unit tests will fail as well as any
you have written to take advantage of resource injection.

Once I have integrated this into GlassFish proper, the aforementioned
should be present by default.