Chapter 4. Resource Adapter Development


4.1. Developing Custom Adapters

For situations in which an existing JCA Adapter (or other connector mechanism) is not suitable, JBoss Data Virtualization provides a framework for developing custom JCA Adapters.
JBoss Data Virtualization uses standard JCA Adapters. Base classes for all of the required supporting JCA SPI (Service Provider Interface) classes are provided by the JBoss Data Virtualization API. The JCA CCI (Common Client Interface) support is not provided because JBoss Data Virtualization uses the translator API as its common client interface.

Note

If you are not familiar with the JCA API, read the JCA 1.5 Specification at http://docs.oracle.com/cd/E15523_01/integration.1111/e10231/intro.htm.
The process for developing a JBoss Data Virtualization JCA Adapter is as follows (the required classes can be found in org.teiid.resource.spi):
  • Define a Managed Connection Factory by extending the BasicManagedConnectionFactory class
  • Define a Connection Factory by extending the BasicConnectionFactory class
  • Define a Connection by extending the BasicConnection class
  • Specify configuration properties in an ra.xml file

Note

The examples contained in this book are simplified and do not include support for transactions or security which would add significant complexity.
For sample resource adapter code, see the teiid/connectors directory of the JBoss Data Virtualization VERSION Source Code ZIP file. This ZIP file can be downloaded from the Red Hat Customer Portal at https://access.redhat.com.
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top