/** * INTERNAL: * @param enableDefault * @return */ protected String getModuleName(boolean enableDefault) { //Object substring = getModuleOrApplicationName(); if(null == this.moduleName) { // Get property from persistence.xml or sessions.xml this.moduleName = (String)getDatabaseSession().getProperty(OVERRIDE_JMX_MODULENAME_PROPERTY); } // if there is no function or property override then answer "unknown" as a default for platforms that do not implement getModuleName() if(null == this.moduleName && enableDefault) { this.moduleName = DEFAULT_SERVER_NAME_AND_VERSION; } return this.moduleName; }
/** * INTERNAL: * @param enableDefault * @return */ protected String getModuleName(boolean enableDefault) { //Object substring = getModuleOrApplicationName(); if(null == this.moduleName) { // Get property from persistence.xml or sessions.xml this.moduleName = (String)getDatabaseSession().getProperty(OVERRIDE_JMX_MODULENAME_PROPERTY); } // if there is no function or property override then answer "unknown" as a default for platforms that do not implement getModuleName() if(null == this.moduleName && enableDefault) { this.moduleName = DEFAULT_SERVER_NAME_AND_VERSION; } return this.moduleName; }
/** * INTERNAL: * Lazy initialize the application name by * first checking for a persistence.xml property override and then * deferring to a default name in the absence of a platform override of this function * @param enableDefault * @return */ protected String getApplicationName(boolean enableDefault) { //Object substring = getModuleOrApplicationName(); if(null == this.applicationName) { // Get property from persistence.xml or sessions.xml this.applicationName = (String)getDatabaseSession().getProperty(OVERRIDE_JMX_APPLICATIONNAME_PROPERTY); } // if there is no function or property override then answer "unknown" as a default for platforms that do not implement getApplicationName() if(null == this.applicationName && enableDefault) { this.applicationName = DEFAULT_SERVER_NAME_AND_VERSION; } return this.applicationName; }
/** * INTERNAL: * Lazy initialize the application name by * first checking for a persistence.xml property override and then * deferring to a default name in the absence of a platform override of this function * @param enableDefault * @return */ protected String getApplicationName(boolean enableDefault) { //Object substring = getModuleOrApplicationName(); if(null == this.applicationName) { // Get property from persistence.xml or sessions.xml this.applicationName = (String)getDatabaseSession().getProperty(OVERRIDE_JMX_APPLICATIONNAME_PROPERTY); } // if there is no function or property override then answer "unknown" as a default for platforms that do not implement getApplicationName() if(null == this.applicationName && enableDefault) { this.applicationName = DEFAULT_SERVER_NAME_AND_VERSION; } return this.applicationName; }
String jpaModuleName = (String)getDatabaseSession().getProperty(WEBLOGIC_MODULENAME_PROPERTY); String jpaApplicationName = (String)getDatabaseSession().getProperty(WEBLOGIC_APPLICATIONNAME_PROPERTY);
String jpaModuleName = (String)getDatabaseSession().getProperty(SERVER_SPECIFIC_MODULENAME_PROPERTY); String jpaApplicationName = (String)getDatabaseSession().getProperty(SERVER_SPECIFIC_APPLICATIONNAME_PROPERTY);
String jpaModuleName = (String)getDatabaseSession().getProperty(SERVER_SPECIFIC_MODULENAME_PROPERTY); String jpaApplicationName = (String)getDatabaseSession().getProperty(SERVER_SPECIFIC_APPLICATIONNAME_PROPERTY);