is loaded.
The difference between plain and shared mode is only indicated by the built in jerry spring
application context. The plain mode starts a jetty instance per web application instance. The
shared mode uses the same jetty instance for all web applications. The default is plain mode
as it is usually the simpler and preferred way to use it.
The web application will be enabled automatically for OpenSpaces bootstrapping using
BootstrapWebApplicationContextListener
.
Post processing of the web.xml
and jetty-web.xml
is performed allowing
to use ${...}
notation within them (for example, using system properties, deployed
properties, or ${clusterInfo...}
).
JMX in jetty can be enabled by passing a deployment property JETTY_JMX_PROP
. If set
to true
jetty will be configured with JMX. In plain mode, where there can be more
than one instance of jetty within the same JVM, the domain each instance will be registered under
will be gigaspaces.jetty.${clusterInfo.name}.${clusterInfo.runningNumberOffset1}
.
In shared mode, where there is only one instance of jetty in a single JVM, jetty JMX will be registered
with a domain called gigaspaces.jetty
.
- Author:
- kimchy
Methods inherited from class org.openspaces.pu.container.jee.JeeProcessingUnitContainerProvider |
addConfigLocation, addConfigLocation, getBeanLevelProperties, getClusterInfo, getDeployPath, getJeeClassLoader, getJeeContainer, getJeeContainerJarPath, getManifestURLs, getWebAppClassLoaderClassPath, getWebAppClassLoaderJars, initApplicationContext, setBeanLevelProperties, setClassLoader, setClusterInfo, setDeployPath, setManifestUrls, setParentContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_JETTY_PU
public static final String DEFAULT_JETTY_PU
- The optional location where a jetty spring application context (responsible for configuring
jetty) will be loaded (within the processing unit). If does not exists, will load either the
plain or shared built in jetty configurations (controlled by
JETTY_INSTANCE_PROP
)
defaulting to plain.
- See Also:
- Constant Field Values
INTERNAL_JETTY_PU_PREFIX
public static final String INTERNAL_JETTY_PU_PREFIX
- See Also:
- Constant Field Values
INSTANCE_PLAIN
public static final String INSTANCE_PLAIN
- See Also:
- Constant Field Values
INSTANCE_SHARD
public static final String INSTANCE_SHARD
- See Also:
- Constant Field Values
JETTY_LOCATION_PREFIX_SYSPROP
public static final String JETTY_LOCATION_PREFIX_SYSPROP
- See Also:
- Constant Field Values
JETTY_INSTANCE_PROP
public static final String JETTY_INSTANCE_PROP
- See Also:
- Constant Field Values
JETTY_JMX_PROP
public static final String JETTY_JMX_PROP
- The deployment property controlling if JMX is enabled or not. Defaults to
false
(JMX is disabled).
- See Also:
- Constant Field Values
JettyJeeProcessingUnitContainerProvider
public JettyJeeProcessingUnitContainerProvider()
getCurrentApplicationContext
public static ApplicationContext getCurrentApplicationContext()
- Allows to get the current application context (loaded from
pu.xml
) during web application
startup. Can be used to access beans defined within it (like a Space) by components loaded (such as
session storage). Note, this is only applicable during web application startup. It is cleared right
afterwards.
getCurrentClusterInfo
public static ClusterInfo getCurrentClusterInfo()
getCurrentBeanLevelProperties
public static BeanLevelProperties getCurrentBeanLevelProperties()
getJeeContainerType
public String getJeeContainerType()
- Specified by:
getJeeContainerType
in class JeeProcessingUnitContainerProvider
createContainer
public ProcessingUnitContainer createContainer()
throws CannotCreateContainerException
- See the header javadoc.
- Returns:
- A newly created processing unit container.
- Throws:
CannotCreateContainerException
Copyright © GigaSpaces.