Giter VIP home page Giter VIP logo

eap-datasources-galleon-pack's Introduction

Galleon Feature Pack for integrating datasources into Red Hat JBoss Enterprise Application Platform

This feature pack for JBoss EAP and JBoss EAP XP provides JDBC drivers and datasources for various databases.

The datasources Galleon feature-pack is to be provisioned along with the EAP 7.4, EAP 8 Beta or EAP XP 4 Galleon feature-packs.

The Galleon layers defined in this feature-pack are decorator layers. This means that they need to be provisioned in addition to an EAP base layer.

Resources:

NOTE: The base layer datasources-web-server (that provisions EAP datasources) is the minimal base layer to use when provisioning Galleon layers that this feature-pack define.

Galleon feature-pack compatible with EAP and EAP XP

The Maven coordinates to use is: org.jboss.eap:eap-datasources-galleon-pack[:<version>]

NOTE: Version is optional when configuring the EAP 8 Beta channel in the EAP Maven Plugin.

Supported database types

For each database type it supports, the feature-pack provides 3 Galleon layers that build upon each other :

  • One just to add the driver (eg: postgresql-driver). This installs a JBoss Modules module for the driver and adds a driver resource to the datasources subsystem in the server configuration.
  • One that builds on the first to add a datasource (eg: postgresql-datasource).
  • One that builds on the second to make the datasource the Jakarta EE default datasource (eg: postgresql-default-datasource).

The linked documentation provides information about how to configure each supported database type:

NOTE: No specific driver version is included in the feature-pack. During provisioning you need to set the environment variable [driver name]_DRIVER_VERSION="<version>". For example POSTGRESQL_DRIVER_VERSION="42.2.19". Each driver specific environment variable is defined in each driver documentation.

Using the Datasources Galleon feature-pack

Provisioning of driver and datasources Galleon layers can be done in multiple ways according to the provisioning tooling in use.

You need to set the following environment variables during S2I build to include the drivers and datasources of your choice:

  • GALLEON_PROVISION_FEATURE_PACKS="org.jboss.eap:eap-datasources-galleon-pack:7.4.0.GA-redhat-00003"
  • GALLEON_PROVISION_LAYERS="<base layer>,<datasources layers>". For example: "jaxrs-server,postgresql-datasource"
  • [driver name]_DRIVER_VERSION="<driver version>". For example POSTGRESQL_DRIVER_VERSION="42.2.19"

The todo quickstart contains a complete usage of the EAP datasources Galleon feature-pack and layers.

Provisioning using the EAP 8 Beta Maven Plugin on OpenShift

You need to include the datasources feature-pack and layers in the Maven Plugin configuration. This looks like:

...
<channels>
  <channel>
    <groupId>org.jboss.eap.channels</groupId>
    <artifactId>eap-8.0-beta</artifactId>
  </channel>
</channels>
<feature-packs>
  <feature-pack>
    <location>org.jboss.eap:wildfly-ee-galleon-pack</location>
  </feature-pack>
  <feature-pack>
    <location>org.jboss.eap.cloud:eap-cloud-galleon-pack</location>
  </feature-pack>
  <feature-pack>
    <location>org.jboss.eap:eap-datasources-galleon-pack</location>
  </feature-pack>
</feature-packs>
<layers>
  <!-- Base layer -->
  <layer>jaxrs-server</layer>
  <layer>postgresql-datasource</layer>
</layers>
...

NOTE: The environment variable [driver name]_DRIVER_VERSION="<version>". For example POSTGRESQL_DRIVER_VERSION="42.2.19" must be set when executing an S2I build.

The todo quickstart contains a complete EAP 8 Beta Maven Plugin configuration.

Provisioning using the EAP XP 4 Bootable JAR Maven plugin

You need to include the datasources feature-pack and layers in the Maven Plugin configuration. This looks like:

...
<feature-packs>
  <feature-pack>
    <location>org.jboss.eap:wildfly-galleon-pack:4.0.0.GA-redhat-00009</location>
  </feature-pack>
  <feature-pack>
    <location>org.jboss.eap:eap-datasources-galleon-pack:7.4.0.GA-redhat-00003</location>
  </feature-pack>
</feature-packs>
<layers>
  <!-- Base layer -->
  <layer>jaxrs-server</layer>
  <layer>postgresql-datasource</layer>
</layers>
...

NOTE: The environment variable [driver name]_DRIVER_VERSION="<version>". For example POSTGRESQL_DRIVER_VERSION="42.2.19" must be set when building an EAP XP Bootable JAR.

The todo quickstart contains a complete EAP XP 4 Bootable JAR Maven Plugin configuration.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.