Community
Participate
Working Groups
This bean requires a reference to its owning application and a new interface function. public String getApplicationName();
See related bugs https://bugs.eclipse.org/bugs/show_bug.cgi?id=248747 https://bugs.eclipse.org/bugs/show_bug.cgi?id=248748
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"/>
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.
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."
Starting design/implementation
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.
Created attachment 117213 [details] Screen cap of the implemented moduleName and new applicationName
Created attachment 117246 [details] eclipselink core patch (pre code-review)
Created attachment 117451 [details] eclipselink core patch (pre code-review)
Created attachment 117696 [details] eclipselink core patch (post code-review) Code Reviewed: David Minsky
see rev 2747 http://fisheye2.atlassian.com/changelog/eclipselink/?cs=2747
Created attachment 118672 [details] eclipselink core patch (osgi manifest entry for new services.weblogic package)
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,
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink