Version 17

    Found in the system project under the org.jboss.deployment package.

    XSLSubDeployer is an MBean that is currently used in JBossJCA in the META-INF/jboss-service.xml file in jboss-jca.sar.

     

    It has two MBean attributes:

     

    1. DsSuffix - this is set to -ds.xml to pick up any xml files that end in -ds.xml.

    2. XslUrl - this is the relative path to the XSL stylesheet that the deployer will be applying to the -dx.xml file.

     

    The two main methods in this class are:

     

    1. createService()

    2. init(DeploymentInfo)

     

    There are five main XML formats available in setting up connectors:

    1. Transaction Connection Factory

    2. Non-transactional Connection Factory

    3. Local Transactional Data Source

    4. Non-transactional Data Source

    5. Transactional Data Source

     

    Sample transformations:

     

     

    As you can see in the Datasource example, there is an order of dependencies, where certain MBeans must be available before others. Here is the order, from first deployed to last deployed:

     

    1. jboss:service=TransactionManager

    2. jboss.jca:service=CachedConnectionManager

    3. jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper

    4. jboss.jca:service=ManagedConnectionFactory,name=OracleDS (org.jboss.resource.connectionmanager.RARDeployment)

    5. jboss.jca:service=ManagedConnectionPool,name=OracleDS (org.jboss.resource.connectionmanager.JBossManagedConnectionPool)

    6. jboss.jca:service=LocalTxCM,name=OracleDS (org.jboss.resource.connectionmanager.TxConnectionManager)

     

    Similarly, in the LDAP example, you see some of the same dependencies:

     

    1. jboss.jca:service=RARDeployment,name=LDAP Adapter

    2. jboss.jca:service=ManagedConnectionFactory,name=LDAPDS

    3. jboss.jca:service=ManagedConnectionPool,name=LDAPDS

    4. jboss.jca:service=NoTxCM,name=LDAPDS

     

    So some commonalities:

     

    1. The RARDeployment

    2. The ManagedConnectionFactory

    3. The ManagedConnectionPool

    4. The ConnectionManager

     

    Start with the commonalities to implement programmatic connection factories.