Class WebLogicPlatform
- java.lang.Object
-
- org.eclipse.persistence.platform.server.ServerPlatformBase
-
- org.eclipse.persistence.platform.server.JMXServerPlatformBase
-
- org.eclipse.persistence.platform.server.wls.WebLogicPlatform
-
- All Implemented Interfaces:
ServerPlatform
- Direct Known Subclasses:
WebLogic_9_Platform
public class WebLogicPlatform extends JMXServerPlatformBase
PUBLIC: This is the concrete subclass responsible for representing WebLogic-specific server behavior.This platform overrides:
- getExternalTransactionControllerClass(): to use the WebLogic-specific controller class
- getServerNameAndVersion(): to call the WebLogic library for this information
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.platform.server.JMXServerPlatformBase
JMX_MBEANSERVER_INDEX_DEFAULT_FOR_MULTIPLE_SERVERS, JMX_REGISTRATION_PREFIX
-
Fields inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase
DEFAULT_SERVER_NAME_AND_VERSION, JMX_REGISTER_DEV_MBEAN_PROPERTY, JMX_REGISTER_RUN_MBEAN_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description WebLogicPlatform(DatabaseSession newDatabaseSession)
INTERNAL: Default Constructor: All behavior for the default constructor is inherited.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearStatementCache(Connection connection)
INTERNAL: Clears statement cache of WebLogic connection using the WebLogic API reflectively.Class
getExternalTransactionControllerClass()
INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use for WebLogic.void
initializeServerNameAndVersion()
INTERNAL: Set the WLS version number through reflection.Connection
unwrapConnection(Connection connection)
Unwraps the WebLogic JDBC connection wrapping using the WebLogic API reflectively.-
Methods inherited from class org.eclipse.persistence.platform.server.JMXServerPlatformBase
getApplicationName, getMBeanServer, getModuleName, serverSpecificRegisterMBean, serverSpecificUnregisterMBean, setApplicationName
-
Methods inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase
configureProfiler, disableJTA, disableRuntimeServices, enableRuntimeServices, getDatabaseSession, getJNDIConnectorLookupType, getNewTempClassLoader, getPartitionID, getServerLog, getServerNameAndVersion, getThreadPool, getThreadPoolSize, initializeExternalTransactionController, isCMP, isJTAEnabled, isRuntimeServicesEnabled, isRuntimeServicesEnabledDefault, launchContainerRunnable, registerMBean, setExternalTransactionControllerClass, setIsCMP, setThreadPool, setThreadPoolSize, shouldUseDriverManager, shutdown, unregisterMBean, usesPartitions, wasFailureCommunicationBased
-
-
-
-
Constructor Detail
-
WebLogicPlatform
public WebLogicPlatform(DatabaseSession newDatabaseSession)
INTERNAL: Default Constructor: All behavior for the default constructor is inherited.
-
-
Method Detail
-
initializeServerNameAndVersion
public void initializeServerNameAndVersion()
INTERNAL: Set the WLS version number through reflection.
-
getExternalTransactionControllerClass
public Class getExternalTransactionControllerClass()
INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use for WebLogic. This is read-only.- Specified by:
getExternalTransactionControllerClass
in interfaceServerPlatform
- Specified by:
getExternalTransactionControllerClass
in classServerPlatformBase
- Returns:
- Class externalTransactionControllerClass
- See Also:
JTATransactionController
,ServerPlatformBase.isJTAEnabled()
,ServerPlatformBase.disableJTA()
,ServerPlatformBase.initializeExternalTransactionController()
-
unwrapConnection
public Connection unwrapConnection(Connection connection)
Unwraps the WebLogic JDBC connection wrapping using the WebLogic API reflectively.- Specified by:
unwrapConnection
in interfaceServerPlatform
- Overrides:
unwrapConnection
in classServerPlatformBase
-
clearStatementCache
public void clearStatementCache(Connection connection)
INTERNAL: Clears statement cache of WebLogic connection using the WebLogic API reflectively. Required by Oracle proxy authentication: currently connection statement cache becomes invalid on switching to/from proxy session. This method is called by OracleJDBC_10_1_0_2ProxyConnectionCustomizer before opening proxy session and before closing it.- Specified by:
clearStatementCache
in interfaceServerPlatform
- Overrides:
clearStatementCache
in classServerPlatformBase
-
-