Infinispan subsystem, Infinispan – HP Integrity NonStop H-Series User Manual

Page 53

Advertising
background image

Table 12 Components of EJB3 (continued)

Description

Attributes

If it is remoting, then the option needs to be defined in
org.jboss.remoting3.RemotingOptions

class.

name

: This is the name of the option that is to be set. For example,

READ_TIMEOUT (if the type is xnio), and MAX_OUTBOUND_MESSAGE
(if the type is remoting).

value

: This is the value of the option that is to be set.

Infinispan subsystem

Infinispan is used as the cache container in NSASJ (inherited from JBoss AS). It is used to cache
stateful session bean instances. NSASJ is configured such that each instance has its own local
cache which stores all its entries in a centralized cache store which is an Infinispan HotRod server.
The default configuration of NSASJ comes with a pair of HotRod servers which form a cluster and
each HotRod server replicates its objects in the other instance. The following is a snippet and might
not contain all the elements listed in

Table 13 (page 53)

:

<subsystem xmlns="urn:jboss:domain:infinispan:1.3">
<cache-container name="ejb" aliases="ha-partition" default-cache="default">
<transport lock-timeout="60000"/>
<local-cache name="default" batching="true">
<locking isolation="REPEATABLE_READ"/>
<remote-store cache="remote-cluster" socket-timeout="60000" tcp-no-delay="true"
shared="true" preload="true" passivation="false" fetch-state="false" purge="false">
<remote-server outbound-socket-binding="remote-store-hotrod-server"/>
</remote-store>
</local-cache>
</cache-container>
<cache-container name="web" aliases="standard-session-cache" default-cache="web-local"
module="org.jboss.as.clustering.web.infinispan">
<transport lock-timeout="60000"/>
<local-cache name="web-local" start="EAGER" batching="true">
<remote-store cache="remote-web" socket-timeout="40000" tcp-no-delay="true" shared="true"
preload="true" passivation="false" fetch-state="false" purge="false">
<remote-server outbound-socket-binding="remote-store-hotrod-server"/>
</remote-store>
</local-cache>
</cache-container>
<cache-container name="cluster" aliases="sfsb sfsb-cache" default-cache="local-ejb"
module="org.jboss.as.clustering.ejb3.infinispan">
<transport lock-timeout="60000"/>
<local-cache name="local-ejb" batching="true">
<eviction strategy="LRU" max-entries="10000"/>
<remote-store cache="remote-ejb" socket-timeout="60000" tcp-no-delay="true" shared="true"
preload="true" passivation="false" fetch-state="false" purge="false">
<remote-server outbound-socket-binding="remote-store-hotrod-server"/>
</remote-store>
</local-cache>
<local-cache name="remote-connector-client-mappings" batching="true"/>
<local-cache name="dist-ejb" batching="true">
<eviction strategy="LRU" max-entries="10000"/>
</local-cache>
</cache-container>
</subsystem>

Table 13 (page 53)

lists the components of Infinispan and then discusses the attributes comprising

it.

Table 13 Components of Infinispan

Element/Attribute

Component

This element defines a cache container. The following are the attributes
defined for the same:

cache container

name:

This is the name of the cache container. In the default NSASJ

configuration the cache container is referenced in the
passivation-store

configuration of the EJB3 subsystem.

aliases:

The other names that can be used to reference this

container.

Infinispan subsystem

53

Advertising
This manual is related to the following products: