Show Table of Contents
7.2. An Overview of the JBossCX Architecture
The JBossCX framework provides the application server architecture extension required for the use of JCA resource adaptors. This is primarily a connection pooling and management extension along with a number of MBeans for loading resource adaptors into the JBoss server.
There are three coupled MBeans that make up a RAR deployment. These are the
org.jboss.resource.deployment.RARDeployment, org.jboss.resource.connectionmanager.RARDeployment, and org.jboss.resource.connectionmanager.BaseConnectionManager2. The org.jboss.resource.deployment.RARDeployment is simply an encapsulation of the metadata of a RAR META-INF/ra.xml descriptor. It exposes this information as a DynamicMBean simply to make it available to the org.jboss.resource.connectionmanager.RARDeployment MBean.
The RARDeployer service handles the deployment of archives files containing resource adaptors (RARs). It creates the
org.jboss.resource.deployment.RARDeployment MBeans when a RAR file is deployed. Deploying the RAR file is the first step in making the resource adaptor available to application components. For each deployed RAR, one or more connection factories must be configured and bound into JNDI. This task performed using a JBoss service descriptor that sets up a org.jboss.resource.connectionmanager.BaseConnectionManager2 MBean implementation with a org.jboss.resource.connectionmgr.RARDeployment dependent.
7.2.1. BaseConnectionManager2 MBean
The
org.jboss.resource.connectionmanager.BaseConnectionManager2 MBean is a base class for the various types of connection managers required by the JCA spec. Subclasses include NoTxConnectionManager, LocalTxConnectionManager and XATxConnectionManager. These correspond to resource adaptors that support no transactions, local transaction and XA transaction respectively. You choose which subclass to use based on the type of transaction semantics you want, provided the JCA resource adaptor supports the corresponding transaction capability.
The common attributes supported by the BaseConnectionManager2 MBean are:
- ManagedConnectionPool: This specifies the ObjectName of the MBean representing the pool for this connection manager. The MBean must have an
ManagedConnectionPoolattribute that is an implementation of theorg.jboss.resource.connectionmanager.ManagedConnectionPoolinterface. Normally it will be an embedded MBean in a depends tag rather than anObjectNamereference to an existing MBean. The default MBean for use is theorg.jboss.resource.connectionmanager.JBossManagedConnectionPool. Its configurable attributes are discussed below. - CachedConnectionManager: This specifies the
ObjectNameof theCachedConnectionManagerMBean implementation used by the connection manager. Normally this is specified using a depends tag with theObjectNameof the uniqueCachedConnectionManagerfor the server. The namejboss.jca:service=CachedConnectionManageris the standard setting to use. - SecurityDomainJndiName: This specifies the JNDI name of the security domain to use for authentication and authorization of resource connections. This is typically of the form
java:/jaas/<domain>where the<domain>value is the name of an entry in theconf/login-config.xmlJAAS login module configuration file. This defines which JAAS login modules execute to perform authentication. - JaasSecurityManagerService: This is the
ObjectNameof the security manager service. This should be set to the security manager MBean name as defined in theconf/jboss-service.xmldescriptor, and currently this isjboss.security:service=JaasSecurityManager. This attribute will likely be removed in the future.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.