| Summary: | Support interpreting ejb_or_metadata logging category | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Doug Clarke <douglas.clarke> | ||||||||||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||||||
| Severity: | blocker | ||||||||||||||
| Priority: | P3 | CC: | jamesssss, neil.hauge | ||||||||||||
| Version: | unspecified | ||||||||||||||
| Target Milestone: | --- | ||||||||||||||
| Hardware: | All | ||||||||||||||
| OS: | All | ||||||||||||||
| Whiteboard: | |||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Doug Clarke
For the ejb_or_metadata category I believe the fix is simply an addition to EntityManagerFactoryProvider's oldPropertyNames[][] such as:
{PersistenceUnitProperties.LOGGING_LEVEL + "." + SessionLog.EJB_OR_METADATA, PersistenceUnitProperties.LOGGING_LEVEL + ".ejb_or_" + SessionLog.EJB_OR_METADATA}
{PersistenceUnitProperties.LOGGING_LEVEL + "." + SessionLog.METAMODEL, PersistenceUnitProperties.LOGGING_LEVEL + ".jpa_" + SessionLog.METAMODEL},
{PersistenceUnitProperties.LOGGING_LEVEL + "." + SessionLog.EJB_OR_METADATA, PersistenceUnitProperties.LOGGING_LEVEL + ".ejb_or_" + SessionLog.EJB_OR_METADATA}
I also noticed that the SessionLog's JavaDoc header hard codes some of these values. I would suggest using:
* <table>
* <tr><td> </td><td>SQL</td> <td> </td><td>= {@value #SQL}</td></tr>
* <tr><td> </td><td>TRANSACTION</td> <td> </td><td>= {@value #TRANSACTION}</td></tr>
* <tr><td> </td><td>EVENT</td> <td> </td><td>= {@value #EVENT}</td></tr>
* <tr><td> </td><td>CONNECTION</td> <td> </td><td>= {@value #CONNECTION}</td></tr>
* <tr><td> </td><td>QUERY</td> <td> </td><td>= {@value #QUERY}</td></tr>
* <tr><td> </td><td>CACHE</td> <td> </td><td>= {@value #CACHE}</td></tr>
* <tr><td> </td><td>PROPAGATION</td> <td> </td><td>= {@value #PROPAGATION}</td></tr>
* <tr><td> </td><td>SEQUENCING</td> <td> </td><td>= {@value #SEQUENCING}</td></tr>
* <tr><td> </td><td>EJB</td> <td> </td><td>= {@value #EJB}</td></tr>
* <tr><td> </td><td>DMS</td> <td> </td><td>= {@value #DMS}</td></tr>
* <tr><td> </td><td>EJB_OR_METADATA</td><td> </td><td>= {@value #EJB_OR_METADATA} </td></tr>
* <tr><td> </td><td>METAMODEL</td><td> </td><td>= {@value #METAMODEL}</td></tr>
* <tr><td> </td><td>WEAVER</td> <td> </td><td>= {@value #WEAVER}</td></tr>
* <tr><td> </td><td>PROPERTIES</td> <td> </td><td>= {@value #PROPERTIES}</td></tr>
* <tr><td> </td><td>SERVER</td> <td> </td><td>= {@value #SERVER}</td></tr>
* </table>
Created attachment 220063 [details]
Proposed Patch
Deprecate EJB_OR_METADATA replacing with METADATA
Add jpa-metamodel and ejb_or_metadata to org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.oldPropertyNames
Created attachment 220064 [details]
Proposed Patch
Created attachment 220066 [details]
Proposed Patch
When running with agent and logging config of: <property name="eclipselink.logging.timestamp" value="false"/> <property name="eclipselink.logging.level" value="FINE"/> <property name="eclipselink.logging.thread" value="false"/> <property name="eclipselink.logging.session" value="false"/> <property name="eclipselink.logging.exceptions" value="false"/> <property name="eclipselink.logging.connection" value="false"/> <property name="eclipselink.logging.level.ejb_or_metadata" value="WARNING"/> <property name="eclipselink.logging.level.jpa_metamodel" value="WARNING"/> I am getting duplicate messages based on the various processings of the PU: [EL Info]: transaction: property eclipselink.logging.level.jpa_metamodel is deprecated, property eclipselink.logging.level.metamodel should be used instead. [EL Info]: transaction: property eclipselink.logging.level.ejb_or_metadata is deprecated, property eclipselink.logging.level.metadata should be used instead. [EL Info]: transaction: property eclipselink.logging.level.jpa_metamodel is deprecated, property eclipselink.logging.level.metamodel should be used instead. [EL Info]: transaction: property eclipselink.logging.level.ejb_or_metadata is deprecated, property eclipselink.logging.level.metadata should be used instead. [EL Info]: transaction: property eclipselink.logging.level.jpa_metamodel is deprecated, property eclipselink.logging.level.metamodel should be used instead. [EL Info]: transaction: property eclipselink.logging.level.ejb_or_metadata is deprecated, property eclipselink.logging.level.metadata should be used instead. <property name="eclipselink.logging.timestamp" value="false"/> <property name="eclipselink.logging.level" value="FINE"/> <property name="eclipselink.logging.thread" value="false"/> <property name="eclipselink.logging.session" value="false"/> <property name="eclipselink.logging.exceptions" value="false"/> <property name="eclipselink.logging.connection" value="false"/> <property name="eclipselink.logging.level.ejb_or_metadata" value="WARNING"/> <property name="eclipselink.logging.level.jpa_metamodel" value="WARNING"/> Not sure how to address this or if it is important Created attachment 220356 [details]
Fixes for 2.4
Created attachment 220357 [details]
Fixes for 2.4 branch
Checked into 2.4 and master based on Guy's review and testing The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |