Resource Injection and the Java Persistence API in web applications