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:
DsSuffix - this is set to -ds.xml to pick up any xml files that end in -ds.xml.
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:
createService()
init(DeploymentInfo)
There are five main XML formats available in setting up connectors:
Transaction Connection Factory
Non-transactional Connection Factory
Local Transactional Data Source
Non-transactional Data Source
Transactional Data Source
Sample transformations:
Datasource: Datasourcebeforeandafter.txt
LDAP connection factory: Ldapbeforeandafter.txt
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:
jboss:service=TransactionManager
jboss.jca:service=CachedConnectionManager
jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
jboss.jca:service=ManagedConnectionFactory,name=OracleDS (org.jboss.resource.connectionmanager.RARDeployment)
jboss.jca:service=ManagedConnectionPool,name=OracleDS (org.jboss.resource.connectionmanager.JBossManagedConnectionPool)
jboss.jca:service=LocalTxCM,name=OracleDS (org.jboss.resource.connectionmanager.TxConnectionManager)
Similarly, in the LDAP example, you see some of the same dependencies:
jboss.jca:service=RARDeployment,name=LDAP Adapter
jboss.jca:service=ManagedConnectionFactory,name=LDAPDS
jboss.jca:service=ManagedConnectionPool,name=LDAPDS
jboss.jca:service=NoTxCM,name=LDAPDS
So some commonalities:
The RARDeployment
The ManagedConnectionFactory
The ManagedConnectionPool
The ConnectionManager
Start with the commonalities to implement programmatic connection factories.
Comments