persist « Tomcat « JPA Q&A





1. refering Tomcat JNDI datasource in persistence.xml    stackoverflow.com

in server.xml I've defined global resource (I'm using Tomcat 6):

<GlobalNamingResources>
   <Resource name="jdbc/myds" auth="Container"
             type="javax.sql.DataSource"
    ...