Chapter 6. Metadata

6.1. Core Metadata

The metadata for the JBoss JCA project is split up into the following areas

  • Java Connector Architecture Metadata

  • JBoss Metadata

  • DataSource Metadata

The implementation of these areas is done in the JBoss Metadata (JBMETA) project, which is a common project for all metadata inside JBoss.

The issue tracking system for JBoss Metadata is located here: https://jira.jboss.org/jira/browse/JBMETA.

6.1.1. Java Connector Architecture Metadata

The Java Connector Architecture (JCA) metadata implement the metadata defined in the JCA specifications. We have metadata representing the following standards:

  • Java Connector Architecture 1.0

  • Java Connector Architecture 1.5

  • Java Connector Architecture 1.6

These metadata versions have a common super class

org.jboss.metadata.rar.spec.ConnectorMetaData
      

which allow the developer to for example query the version of the metadata.

The metadata is part of the

org.jboss.metadata.rar.jboss.RARDeploymentMetaData
      

structure.

6.1.2. JBoss Metadata

The JBoss metadata implement JBoss specific extensions to the standard Java Connector Architecture metadata. We have metadata representing:

  • JBoss RA 1.0

The metadata can be found in:

org.jboss.metadata.rar.jboss.JBossRAMetaData
      

The metadata is part of the

org.jboss.metadata.rar.jboss.RARDeploymentMetaData
      

structure.

6.1.3. DataSource Metadata

TODO

6.2. Metadata Repository

The metadata repository serves as a central point for all the metadata in the systems.

6.2.1. Interface

The interface of the metadata repository is located in:

org.jboss.jca.core.api.MetaDataRepository
      

providing methods to query and update the repository.

6.2.2. Bean

The JBoss Microcontainer bean for the metadata repository can be defined as:

<bean name="MetaDataRepository" 
      interface="org.jboss.jca.core.api.MetaDataRepository" 
      class="org.jboss.jca.core.mdr.MetaDataRepositoryImpl">
</bean>