Bug 263271 - JMX: A new attribute for persistenceUnit name
Summary: JMX: A new attribute for persistenceUnit name
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All Linux
: P2 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL: http://wiki.eclipse.org/EclipseLink/D...
Whiteboard:
Keywords:
Depends on: 248746 248748 263512 316513
Blocks:
  Show dependency tree
 
Reported: 2009-02-02 13:29 EST by Shankar Subramanian CLA
Modified: 2022-06-09 10:22 EDT (History)
3 users (show)

See Also:
michael.f.obrien: documentation+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shankar Subramanian CLA 2009-02-02 13:29:54 EST
A new attribute that returns persistence unit name and the current SessionName attribute returning only the session name.
Comment 1 Tom Ware CLA 2009-02-04 13:01:15 EST
Setting target to 1.1X so this bug will be a candidate for the first patch release after 1.1
Comment 2 Peter Krogh CLA 2009-11-27 13:55:02 EST
 This bug is being moved to Future where we can properly sort them all together based on community votes and severity. We will then assign them accordingly to future patch sets and releases.
Comment 3 Peter Krogh CLA 2009-11-30 11:38:39 EST
Changing the priority of the bugs that have been recently triaged to future.  Targetting them to P2 will differentiate them from the P3s that have been triaged into future earlier.
Comment 4 Michael OBrien CLA 2010-08-03 10:34:45 EDT
>added enhancement to 2.2 queue - not assigned yet
Comment 5 Michael OBrien CLA 2010-08-03 11:00:04 EDT
>currently for WAS, JBoss and Glassfish the moduleName now returns the persistence unit name
- this is determined by standard practice from the ClassLoader toString()
>WebLogic still returns the context root (from the WAR where the SSB containing the PU is injected)
- this is determined by a reflective call to ExecuteThreadRuntime on WebLogic (It would be good if we could revert this last remaining reflective call to a standard search of the ClassLoader toString())

>see
http://wiki.eclipse.org/EclipseLink/DesignDocs/316513#WebLogic_Application_and_Module_Name_extraction

[EL Finest]: 2010-07-22 14:31:33.025--Thread(Thread[[ACTIVE] ExecuteThread: '3'
for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The
applicationName for the MBean attached to session
[file:/F:/view_w35_wls1033/examples/org.eclipse.persistence.example.jpa.server.weblogic.enterpriseEJB/build/classes/_example] 
is [org.eclipse.persistence.example.jpa.server.weblogic.enterpriseEAR]
[EL Finest]: 2010-07-22 14:31:33.025--Thread(Thread[[ACTIVE] ExecuteThread: '3'
for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The
moduleName for the MBean attached to session
[file:/F:/view_w35_wls1033/examples/org.eclipse.persistence.example.jpa.server.weblogic.enterpriseEJB/build/classes/_example]
is [enterprise]

>it would then be
[EL Finest]: 2010-07-22 14:31:33.025--Thread(Thread[[ACTIVE] ExecuteThread: '3'
for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The
moduleName for the MBean attached to session
[file:/F:/view_w35_wls1033/examples/org.eclipse.persistence.example.jpa.server.weblogic.enterpriseEJB/build/classes/_example]
is [_example]

>We couldmerge this with the related bug# 263273 in view of the new server support changes in parent bug# 316513
However, for all JBoss, WebSphere and Glassfish servers - this enhancement is sort of deprecated because getModuleName() returns the persistence unit name in those cases

>For the session name - it currently is the part of the MBean name - a separate enhancement should be raised if it is still required
Comment 6 Michael OBrien CLA 2010-08-03 11:33:56 EDT
>WLS work was originally in bug# 248746
Comment 7 Michael OBrien CLA 2010-08-03 15:25:08 EDT
>Part of this enhancement is already complete
The mbean attribute [sessionName] returns the DatabaseSession (session) name
See the screen captures of the running MBeans for various servers like JBoss in the design page below or in the attachments to each server child bug
>JBoss and WebLogic (via JRMC) visible below

http://wiki.eclipse.org/EclipseLink/DesignDocs/316513
>Glassfish V3 via NetBeans6.9 and JConsole (unprocessed)
SessionName=file:/C:/wnb69/GlassfishV3EAR/dist/gfdeploy/GlassfishV3EAR/GlassfishV3EAR-ejb_jar/_example
Comment 8 Eclipse Webmaster CLA 2022-06-09 10:22:24 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink