In some cases it might be necessary to run a Java Persistence API (JPA) trace from a Java SE environment.
Enhanced trace can also be used gather additional JPA trace information in a Java SE environment. In the WebSphere® Application Server environment, the application server takes care of coupling the standard OpenJPA trace with the enhanced trace function to produce a single trace output. This process must be done manually in a Java SE environment. Here are the steps to use enhanced tracing in a Java SE environment: