Skip navigation links
org.eclipse.persistence.platform.server.sunas
Class SunAS9ServerPlatform
java.lang.Object
org.eclipse.persistence.platform.server.ServerPlatformBase
org.eclipse.persistence.platform.server.JMXServerPlatformBase
org.eclipse.persistence.platform.server.sunas.SunAS9ServerPlatform
- All Implemented Interfaces:
- JMXEnabledPlatform, ServerPlatform
-
public class SunAS9ServerPlatform
- extends JMXServerPlatformBase
- implements JMXEnabledPlatform
PUBLIC: This is the concrete subclass responsible for representing SunAS9-specific server behavior. This platform overrides: getExternalTransactionControllerClass(): to use an SunAS9-specific controller class
Method Summary |
java.lang.Class |
getExternalTransactionControllerClass()
INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use for SUN AS9. |
SessionLog |
getServerLog()
INTERNAL: getServerLog(): Return the ServerLog for this platform Return the default ServerLog in the base |
boolean |
isRuntimeServicesEnabledDefault()
INTERNAL: isRuntimeServicesEnabledDefault(): Answer true if the JMX/MBean providing runtime services for the receiver's DatabaseSession will be deployed at runtime. |
void |
prepareServerSpecificServicesMBean()
INTERNAL: prepareServerSpecificServicesMBean(): Server specific implementation of the creation and deployment of the JMX MBean to provide runtime services for the databaseSession. |
void |
serverSpecificRegisterMBean()
INTERNAL: serverSpecificRegisterMBean(): Server specific implementation of the creation and deployment of the JMX MBean to provide runtime services for my databaseSession. |
java.sql.Connection |
unwrapConnection(java.sql.Connection connection)
INTERNAL: This method is used to unwrap the connection wrapped by the application server. |
private java.sql.Connection |
unwrapGlassFishConnectionHelper(java.sql.Connection connection)
|
Methods inherited from class org.eclipse.persistence.platform.server.JMXServerPlatformBase |
getAbstractSession, getApplicationName, getApplicationName, getMBeanServer, getMBeanSessionName, getModuleName, getModuleName, getRuntimeServicesMBean, initializeApplicationNameAndModuleName, serverSpecificUnregisterMBean, setApplicationName, setModuleName, setRuntimeServicesMBean |
Methods inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase |
clearStatementCache, configureProfiler, disableJTA, disableRuntimeServices, enableRuntimeServices, ensureNotLoggedIn, externalTransactionControllerNotNullWarning, getDatabaseSession, getNewTempClassLoader, getServerNameAndVersion, initializeExternalTransactionController, initializeServerNameAndVersion, isCMP, isJTAEnabled, isRuntimeServicesEnabled, launchContainerRunnable, registerMBean, setExternalTransactionControllerClass, setIsCMP, shouldUseDriverManager, unregisterMBean, wasFailureCommunicationBased |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SunAS9ServerPlatform
public SunAS9ServerPlatform(DatabaseSession newDatabaseSession)
- INTERNAL: Default Constructor: All behavior for the default constructor is inherited
getExternalTransactionControllerClass
public java.lang.Class getExternalTransactionControllerClass()
- INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use for SUN AS9. This is read-only.
-
- Specified by:
getExternalTransactionControllerClass
in interface ServerPlatform
- Specified by:
getExternalTransactionControllerClass
in class ServerPlatformBase
-
- Returns:
- Class externalTransactionControllerClass
- See Also:
JTATransactionController
, ServerPlatformBase.isJTAEnabled()
, ServerPlatformBase.disableJTA()
, ServerPlatformBase.initializeExternalTransactionController()
unwrapConnection
public java.sql.Connection unwrapConnection(java.sql.Connection connection)
- Description copied from class:
ServerPlatformBase
- INTERNAL: This method is used to unwrap the connection wrapped by the application server. TopLink needs this unwrapped connection for certain database vendor specific support. (i.e. TIMESTAMPTZ,NCHAR,XMLTYPE) Be default we will use the connection's metadata to try to get the connection
-
- Specified by:
unwrapConnection
in interface ServerPlatform
- Overrides:
unwrapConnection
in class ServerPlatformBase
unwrapGlassFishConnectionHelper
private java.sql.Connection unwrapGlassFishConnectionHelper(java.sql.Connection connection)
-
- Returns:
- unwrapped GlassFish connection, null if connection can not be unwrapped.
getServerLog
public SessionLog getServerLog()
- Description copied from class:
ServerPlatformBase
- INTERNAL: getServerLog(): Return the ServerLog for this platform Return the default ServerLog in the base
-
- Specified by:
getServerLog
in interface ServerPlatform
- Overrides:
getServerLog
in class ServerPlatformBase
-
- Returns:
- org.eclipse.persistence.logging.SessionLog
isRuntimeServicesEnabledDefault
public boolean isRuntimeServicesEnabledDefault()
- Description copied from class:
ServerPlatformBase
- INTERNAL: isRuntimeServicesEnabledDefault(): Answer true if the JMX/MBean providing runtime services for the receiver's DatabaseSession will be deployed at runtime. Provide the default value for
ServerPlatformBase.isRuntimeServicesEnabled()
for a ServerPlatform. By default this is false
but some platforms can choose to have MBeans deployed by default.
-
- Specified by:
isRuntimeServicesEnabledDefault
in interface ServerPlatform
- Overrides:
isRuntimeServicesEnabledDefault
in class ServerPlatformBase
prepareServerSpecificServicesMBean
public void prepareServerSpecificServicesMBean()
- INTERNAL: prepareServerSpecificServicesMBean(): Server specific implementation of the creation and deployment of the JMX MBean to provide runtime services for the databaseSession. Default is to do nothing. Implementing platform classes must override this function and supply the server specific MBean instance for later registration by calling it in the constructor.
-
- Specified by:
prepareServerSpecificServicesMBean
in interface JMXEnabledPlatform
-
- See Also:
ServerPlatformBase.isRuntimeServicesEnabled()
, ServerPlatformBase.disableRuntimeServices()
, ServerPlatformBase.registerMBean()
serverSpecificRegisterMBean
public void serverSpecificRegisterMBean()
- INTERNAL: serverSpecificRegisterMBean(): Server specific implementation of the creation and deployment of the JMX MBean to provide runtime services for my databaseSession.
-
- Overrides:
serverSpecificRegisterMBean
in class JMXServerPlatformBase
-
- See Also:
ServerPlatformBase.isRuntimeServicesEnabled()
, ServerPlatformBase.disableRuntimeServices()
, ServerPlatformBase.registerMBean()
Skip navigation links