Servlet « Load « JPA Q&A





1. JAVA: how to load database url from web.xml?    stackoverflow.com

I'm using persistence API and want to load jdbc URL from web.xml. URL should be a context parameter of servlet. I can't find how to construct EntityManagerFactory not using persistence.xml. May ...