Version 8

    Depending on a DataSource

    To specify a dependency on a DataSource deployment, you need to depend on the service which binds the DataSource into JNDI. The DataSource is not bound into JNDI until the service jboss.jca:service=DataSourceBinding,name=(jndi-name) has been started. The (jndi-name) is the value of the jndi-name attribute for your DataSource as defined in the -ds.xml.


    The associated connection manager service is a function of the type of DataSource and its jndi-name attribute value. The MBean names for the types of DataSource deployments are:


    • no-tx-datasource

      • jboss.jca:service=NoTxCM,name=(jndi-name)

    • local-tx-datasource

      • jboss.jca:service=LocalTxCM,name=(jndi-name)

    • xa-datasource

      • jboss.jca:service=XATxCM,name=(jndi-name)

    • no-tx-connection-factory

      • jboss.jca:service=NoTxCM,name=(jndi-name)

    • tx-connection-factory

      • jboss.jca:service=TxCM,name=(jndi-name)


    The above does not appear to work in JBoss 4.0.3.  The following is required instead:


    • local-tx-datasource

      • jboss.jca:service=DataSourceBinding,name=(jndi-name)