public class CDISEPlatform extends JMXServerPlatformBase
JMXServerPlatformBase that arranges things such that CDI,
not JNDI, will be used to acquire a TransactionManager and
MBeanServer.
Most users will not use this class directly, but will supply its
fully-qualified name as the value of the eclipselink.target-server Eclipselink JPA extension property
in a META-INF/persistence.xml file.
For example:
<property name="eclipselink.target-server"
value="io.helidon.integrations.cdi.eclipselink.CDISEPlatform"/>getExternalTransactionControllerClass()| Modifier and Type | Class and Description |
|---|---|
static interface |
CDISEPlatform.Eclipselink
A
Qualifier used to designate various things as being
related to Eclipselink in some way. |
static class |
CDISEPlatform.TransactionController
A
JTATransactionController whose CDISEPlatform.TransactionController.acquireTransactionManager() method uses CDI, not JNDI, to
return a TransactionManager instance. |
APP_SERVER_CLASSLOADER_APPLICATION_PU_SEARCH_STRING_POSTFIX, APP_SERVER_CLASSLOADER_APPLICATION_PU_SEARCH_STRING_PREFIX, APP_SERVER_CLASSLOADER_MODULE_EJB_SEARCH_STRING_PREFIX, APP_SERVER_CLASSLOADER_MODULE_EJB_WAR_SEARCH_STRING_POSTFIX, APP_SERVER_CLASSLOADER_MODULE_WAR_SEARCH_STRING_PREFIX, JMX_MBEANSERVER_INDEX_DEFAULT_FOR_MULTIPLE_SERVERS, JMX_REGISTRATION_PREFIX, mBeanServer, OVERRIDE_JMX_APPLICATIONNAME_PROPERTY, OVERRIDE_JMX_MODULENAME_PROPERTYDEFAULT_SERVER_NAME_AND_VERSION, externalTransactionControllerClass, JMX_REGISTER_DEV_MBEAN_PROPERTY, JMX_REGISTER_RUN_MBEAN_PROPERTY, serverNameAndVersion, shouldRegisterDevelopmentBean, shouldRegisterRuntimeBean, threadPool, threadPoolSize| Constructor and Description |
|---|
CDISEPlatform(DatabaseSession session)
Creates a
CDISEPlatform. |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getExternalTransactionControllerClass()
Returns a non-
null Class that extends AbstractTransactionController,
namely CDISEPlatform.TransactionController. |
int |
getJNDIConnectorLookupType()
Returns
JNDIConnector.UNDEFINED_LOOKUP when invoked. |
MBeanServer |
getMBeanServer()
Uses CDI to find a relevant
MBeanServer, caches it, and
returns it. |
void |
initializeExternalTransactionController()
Overrides the
ServerPlatformBase.initializeExternalTransactionController()
method to disable JTA if there is no
TransactionManager bean present in CDI before invoking
the superclass implementation. |
protected void |
initializeServerNameAndVersion()
Sets the name of the platform.
|
void |
launchContainerRunnable(Runnable runnable)
Uses CDI to find a relevant
Executor whose Executor.execute(Runnable) method will be used to submit the
supplied Runnable. |
getAbstractSession, getApplicationName, getApplicationName, getMBeanSessionName, getModuleName, getModuleName, getRuntimeServicesMBean, initializeApplicationNameAndModuleName, serverSpecificRegisterMBean, serverSpecificUnregisterMBean, setApplicationName, setModuleName, setRuntimeServicesMBeanclearStatementCache, configureProfiler, disableJTA, disableRuntimeServices, enableRuntimeServices, ensureNotLoggedIn, externalTransactionControllerNotNullWarning, getDatabaseSession, getNewTempClassLoader, getPartitionID, getServerLog, getServerNameAndVersion, getThreadPool, getThreadPoolSize, isCMP, isJTAEnabled, isRuntimeServicesEnabled, isRuntimeServicesEnabledDefault, registerMBean, setExternalTransactionControllerClass, setIsCMP, setThreadPool, setThreadPoolSize, shouldUseDriverManager, shutdown, unregisterMBean, unwrapConnection, usesPartitions, wasFailureCommunicationBasedpublic CDISEPlatform(DatabaseSession session)
CDISEPlatform.session - the DatabaseSession this platform will
wrap; must not be nullJMXServerPlatformBase(DatabaseSession)protected void initializeServerNameAndVersion()
The format of the platform name is subject to change without notice.
initializeServerNameAndVersion in class ServerPlatformBaseServerPlatformBase.getServerNameAndVersion()public MBeanServer getMBeanServer()
MBeanServer, caches it, and
returns it.
This method may return null.
Overrides of this method may return null.
If there is no such MBeanServer then the MBeanServer found and cached by the superclass
implementation of this method is returned instead.
getMBeanServer in class JMXServerPlatformBaseMBeanServer, or nullpublic void launchContainerRunnable(Runnable runnable)
Executor whose Executor.execute(Runnable) method will be used to submit the
supplied Runnable.
If there is no such Executor, then the superclass implementation of this method is used instead.
launchContainerRunnable in interface ServerPlatformlaunchContainerRunnable in class ServerPlatformBaserunnable - the Runnable to launch; should not be
nullServerPlatformBase.launchContainerRunnable(Runnable)public void initializeExternalTransactionController()
ServerPlatformBase.initializeExternalTransactionController()
method to disable JTA if there is no
TransactionManager bean present in CDI before invoking
the superclass implementation.initializeExternalTransactionController in interface ServerPlatforminitializeExternalTransactionController in class ServerPlatformBaseServerPlatformBase.initializeExternalTransactionController()public Class<?> getExternalTransactionControllerClass()
null Class that extends AbstractTransactionController,
namely CDISEPlatform.TransactionController.getExternalTransactionControllerClass in interface ServerPlatformgetExternalTransactionControllerClass in class ServerPlatformBasenull Class that extends AbstractTransactionControllerAbstractTransactionController,
CDISEPlatform.TransactionControllerpublic final int getJNDIConnectorLookupType()
JNDIConnector.UNDEFINED_LOOKUP when invoked.getJNDIConnectorLookupType in interface ServerPlatformgetJNDIConnectorLookupType in class ServerPlatformBaseJNDIConnector.UNDEFINED_LOOKUPCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.