Code Monkey home page Code Monkey logo

jaybird-galleon's Introduction

WildFly Galleon feature pack for Jaybird

This project provides feature pack that can be used with WildFly bootable JAR to create fat JAR applications that for persistence use Firebird SQL.

For the moment this project is not available on public maven repository, so you need to clone and build it locally.

How to use it

First you need to clone it locally and then run

mvn install

If you need to build this feature pack for a different version of WildFly or JayBird you can specify that as

mvn install -Dversion.org.wildfly=20.0.0.Final -Dversion.org.firebirdsql.jdbc.jaybird=4.0.0.java8

After you have installed it in your local maven repository you can add it to your maven pom.xml. Here is a sample configuration for wildfly-jar-maven-plugin

<configuration>
    <feature-packs>
        <feature-pack>
            <location>wildfly@maven(org.jboss.universe:community-universe)#${version.wildfly}</location>
            <inherit-configs>false</inherit-configs>
            <inherit-packages>false</inherit-packages>
        </feature-pack>
        <feature-pack>
            <groupId>org.firebirdsql</groupId>
            <artifactId>jaybird-galleon</artifactId>
            <version>1.0-SNAPSHOT</version>
            <inherit-configs>false</inherit-configs>
            <inherit-packages>false</inherit-packages>
        </feature-pack>
    </feature-packs>
    <layers>
        <layer>jaybird-datasource</layer>
    </layers>
    <excluded-layers>
        <layer>deployment-scanner</layer>
    </excluded-layers>
</configuration>

Configuring JDBC URL and data source name

There is a set of configuration parameters that can be provided as system properties during application startup or as environment variables.

There are two ways to configure connection URL. You can specify it as a whole.

JAYBIRD_URL - the URL to use to connect to the database

Example: JAYBIRD_URL=jdbc:firebird://localhost:3052/documents

You can also configure individual parts of it:

JAYBIRD_MODE - specifies connection mode. Default value is firebirdsql. 
JAYBIRD_SERVICE_HOST_PORT - the host and port part of the JDBC url. Default is localhost/3050
JAYBIRD_DATABASE - The database name part of the URL

For more information about possible values for JAYBIRD_MODE check the documentation on https://github.com/FirebirdSQL/jaybird/wiki/JDBC-URLs.

This URL uses the deprecated form:

jdbc:<JAYBIRD_MODE>:<JAYBIRD_SERVICE_HOST_PORT>:<JAYBIRD_DATABASE>

To specify user name and password you can use these properties/variables

JAYBIRD_USER - user name to use for database connection. Default is 'sysdba'
JAYBIRD_PASSWORD - password to use for database connection. Default is 'masterkey'

Configure data source name

To configure data source name you have to provide value for one of the below listed environment variables/system properties

JAYBIRD_DATASOURCE - the name of the datasource. Default value is JaybirdDS
OPENSHIFT_JAYBIRD_DATASOURCE - same as above but can be provided only as environment variable

Configure your data source as default

If you want to use data source configured with JAYBIRD_DATASOURCE as default you have to replace jaybird-datasource layer with jaybird-default-datasource in your pom.xml.

...
    <layers>
        <layer>jaybird-default-datasource</layer>
    </layers>
...

jaybird-galleon's People

Contributors

doychin avatar

Watchers

 avatar  avatar  avatar

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.