I have a GlassFish 4.0 server, and I've configured a MySQL connection pool and a resource name for the pool. I can access the pool using simple JDBC.
Now I want to use JPA, and this is where I'm lost.
I believe that Glassfish already includes EclipseLink, so if I want to use that, I do not need to configure anything. Is that correct?
However, I need to configure EclipseLink to use the pool resource. I assume this is done in an XML file somewhere, but I'm not sure which one and where it should be.
Finally, how do I access this from within my application? I assume I need to ask the container to @Inject
something, but I'm not sure what.