In the spec,
the Bean Provider must not use a env-entry element to declare it. Instead, the Bean Provider must declare all references to administered objects associated with resources using the resource-env-ref elements of the deployment descriptor.
I don't quite understand what the spec really mean? Further more, what's the diff between resource-ref and resource-env-ref? Why to use resource-env-ref instead of resource-ref?