I finally got a working persistence.xml for Java EE 7 up and running! With JPA 2.1 generation of the schema is now standardized. This means that you don’t have to use implementation specific flags, such as “eclipselink.ddl-generation” to auto-generate the schema. With Java EE 7, the location of the schema files/namespace has also changed. BelowContinue reading “JPA 2.1 (Java EE 7) – working persistence.xml file”
Category Archives: Java EE
Dangerous Code – Case for Java EE
When writing a Java web application is very easy to inadvertently introduce security holes if you are primarily relying on security constraints specified in the web.xml. Security constraints specified in web.xml enforce access by examining the requested URL. This works fine as long as you aren’t programmatically dispatching pages within Java code.Hint: unless the webContinue reading “Dangerous Code – Case for Java EE”