This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 248746 - JMX: No reference to owning application in WebLogic RuntimeServices MBean
Summary: JMX: No reference to owning application in WebLogic RuntimeServices MBean
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 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: 235168
Blocks: 263271 248748 251283 254467 263273
  Show dependency tree
 
Reported: 2008-09-26 12:41 EDT by Michael OBrien CLA
Modified: 2022-06-09 10:26 EDT (History)
1 user (show)

See Also:


Attachments
Screen cap of the implemented moduleName and new applicationName (89.74 KB, image/pjpeg)
2008-11-06 10:56 EST, Michael OBrien CLA
no flags Details
eclipselink core patch (pre code-review) (34.43 KB, patch)
2008-11-06 15:39 EST, Michael OBrien CLA
no flags Details | Diff
eclipselink core patch (pre code-review) (30.34 KB, patch)
2008-11-10 11:35 EST, Michael OBrien CLA
no flags Details | Diff
eclipselink core patch (post code-review) (33.11 KB, patch)
2008-11-12 14:31 EST, Michael OBrien CLA
no flags Details | Diff
eclipselink core patch (osgi manifest entry for new services.weblogic package) (609 bytes, patch)
2008-11-25 12:09 EST, Michael OBrien CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael OBrien CLA 2008-09-26 12:41:03 EDT
This bean requires a reference to its owning application and a new interface function.
public String getApplicationName();
Comment 2 Michael OBrien CLA 2008-10-16 21:30:58 EDT
All ServerPlatform implementations except for OC4J11 did not implement the getModuleName() function - it was stubbed.
> ServerPlatform.java
>     public String getModuleName() {
>         return "unknown";
>     }
>

The legacy OC4J implementation used server specific API to get the MDB, EJB or WAR application name.
WebLogic will require the same functionality - using reflection instead so we do not have a design time dependency on weblogic.jar.

There will be API for an override in persistence.xml using...
<property name="weblogic.moduleName" value="enterprise"/>
Comment 3 Michael OBrien CLA 2008-10-23 11:20:17 EDT
Override is modified to
public static final String WEBLOGIC_MODULENAME_PROPERTY = "eclipselink.weblogic.moduleName";

String cmpModuleName = (String)getDatabaseSession().getProperty(WEBLOGIC_MODULENAME_PROPERTY);

A fully reflective version will be required to get the app name from the EJB, Web or MDB module.
Comment 4 Michael OBrien CLA 2008-10-29 10:16:36 EDT
Customer requirements: Be able to filter sessions by application.

"In EM, we are required to display the eclipselink sessions for a 
particular application that has been selected by the user. Without the 
application reference, right now we are displaying the eclipselink 
sessions regardless of whether the application has them or not."
Comment 5 Michael OBrien CLA 2008-11-03 09:55:29 EST
Starting design/implementation
Comment 6 Michael OBrien CLA 2008-11-06 10:55:33 EST
The following reflective calls against WebLogic 10.3.3.1 have been entered into the WebLogic_10_platform class- see screencap.

public java.lang.String weblogic.work.ExecuteThreadRuntime.getApplicationName()
public java.lang.String weblogic.work.ExecuteThreadRuntime.getModuleName()

It may be time to create a WebLogic_10_3_platform subclass because of all the changes to the 10.3 classloader infrastructure and ExecuteThreadRuntime API that is not in 10.0.
Comment 7 Michael OBrien CLA 2008-11-06 10:56:38 EST
Created attachment 117213 [details]
Screen cap of the implemented moduleName and new applicationName
Comment 8 Michael OBrien CLA 2008-11-06 15:39:18 EST
Created attachment 117246 [details]
eclipselink core patch (pre code-review)
Comment 9 Michael OBrien CLA 2008-11-10 11:35:33 EST
Created attachment 117451 [details]
eclipselink core patch (pre code-review)
Comment 10 Michael OBrien CLA 2008-11-12 14:31:25 EST
Created attachment 117696 [details]
eclipselink core patch (post code-review)

Code Reviewed: David Minsky
Comment 11 Michael OBrien CLA 2008-11-12 15:02:40 EST
see rev 2747
http://fisheye2.atlassian.com/changelog/eclipselink/?cs=2747
Comment 12 Michael OBrien CLA 2008-11-25 12:09:45 EST
Created attachment 118672 [details]
eclipselink core patch (osgi manifest entry for new services.weblogic package)
Comment 13 Michael OBrien CLA 2008-11-25 12:10:02 EST
Added osgi manifest entry for new services.weblogic package
foundation/org.eclipse.persistence.core/META-INF/MANIFEST.MF
line 117
org.eclipse.persistence.services.weblogic,
Comment 14 Eclipse Webmaster CLA 2022-06-09 10:26:02 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink