Hi Michael,
That seems like it might be useful, but a couple of points:
· Is the JMX MBean support only for WebLogic? If others are supported, are there examples for those (such as WebSphere and GlassFish)?
· What happened to JVM System properties? TopLink Essentials seemed to have this ability so has EclipseLink development removed this ability? Some customers may not be able to attach JMX MBean browser clients so JVM properties would be another tool that would be great to have.
Kind Regards
Nathan
From: eclipselink-users-bounces@xxxxxxxxxxx [mailto:eclipselink-users-bounces@xxxxxxxxxxx] On Behalf Of Michael O'Brien
Sent: 02 December 2011 18:44
To: EclipseLink User Discussions
Subject: Re: [eclipselink-users] JVM properties vs persistence.xml
Nathan,
Good question, yes, in addition to deployment-time you can also change the logging level at runtime and do other things like clear the cache – dynamically for a specific container managed persistence context running in an EE server like WebLogic for example.
Use JConsole, JRMC or any other JMX spec compliant MBean browser client to obtain a reference to the methods and properties of the EclipseLink services MBean named “TopLink_[session-name]”.
You can refer to the design document on exposing the MBean that I was involved with. It contains all necessary references, screen captures and documentation links.
http://wiki.eclipse.org/EclipseLink/DesignDocs/248748
You will be running the following method via the JMX API client.
§ public synchronized void setCurrentEclipseLogLevel(String newLevel)
Your customers, once they have enabled access to the MBeans can then run or view any of the properties listed in the design document
Thank you
/F. Michael O’Brien
From: eclipselink-users-bounces@xxxxxxxxxxx [mailto:eclipselink-users-bounces@xxxxxxxxxxx] On Behalf Of Nathan Drew
Sent: December 2, 2011 12:26
To: eclipselink-users@xxxxxxxxxxx
Subject: [eclipselink-users] JVM properties vs persistence.xml
Hi,
Having gone through the process of needing to vary the logging levels for EclipseLink, and thinking of the case when we might have to support a customer using our application and want to get more debug information from them without rebuilding our application from scratch… shouldn’t the JVM property for eclipselink.logging.level override the value set in persistence.xml?
That’s the general model in most JEE things - configure in the app, then allow the "deployer" to override values.
Was this the case for Toplink Essentials?
Kind Regards
Nathan