`

configure postgresql datasource in EAP 6.3 / Wildfly 8

阅读更多
find JBoss / Wildfly application server

./jboss-cli.sh

Install module containing the JDBC Driver. Specify the module name and the location where the jdbc driver has been downloaded:

module add --name=org.postgres --resources=/tmp/postgresql-9.3-1101.jdbc41.jar --dependencies=javax.api,javax.transaction.api

Now install the JDBC Driver on the application server:

/subsystem=datasources/jdbc-driver=postgres:add(driver-name="postgres",driver-module-name="org.postgres",driver-class-name=org.postgresql.Driver)

Finally install the datasource which will connect to the default "postgres" database on localhost:

data-source add --jndi-name=java:/PostGreDS --name=PostgrePool --connection-url=jdbc:postgresql://localhost/postgres --driver-name=postgres --user-name=postgres --password=postgres


ref:

http://www.mastertheboss.com/jboss-server/jboss-datasource/configuring-a-datasource-with-postgresql-and-jboss-wildfly
分享到:
评论

相关推荐

    lidmodbus3.14(解决configure.js错误)

    libmodbus最新版,解决了原资源中configure.js运行错误

    How to Configure User Status in mySAP SRM.pdf

    How to Configure User Status in mySAP SRM.pdf

    2.11 y30S-93AT

    2.11 更新BIN 以成功测试 放下下载

    ubuntu 工具源码和安装说明-2

    ./configure --prefix=/usr/local/gcc --enable-threads=posix --disable-checking --disable-multilib --enable-languages=c,c++ --with-gmp=/usr/local/gmp --with-mpfr=/usr/local/mpfr --with-mpc=/usr/local/...

    prefix_360百科.html

    配置(configure) 编译(make) 安装(make install) 安装方法: 具体的安装方法一般作者都会给出文档,这里说明配置(configure)的prefix选项 以安装supersparrow-0.0.0为例,我们打算把他安装到目录 /usr/local/...

    ubuntu 工具源码和安装说明

    ./configure --prefix=/usr/local/gcc --enable-threads=posix --disable-checking --disable-multilib --enable-languages=c,c++ --with-gmp=/usr/local/gmp --with-mpfr=/usr/local/mpfr --with-mpc=/usr/local/...

    PostgreSQL 8 for Windows

    *Install and configure PostgreSQL on Windows *Administer your database and manage data *Create VB.NET, Visual C++, and Java applications *Migrate from Microsoft Access to PostgreSQL

    chat:您与其他人聊天的网站

    聊天 这是您与其他人聊天的站点。 链接到网站安装# Install ... sudo apt-key add -sudo apt-get updatesudo apt-get install postgresql-9.6# Configure databasesudo su - postgrespsqlCREATE USER chat_admin WITH

    gcc5.4.zip

    ../configure --prefix=/usr/local/gcc-5.4.0 --enable-threads=posix --disable-checking --disable-multilib --enable-languages=c,c++ --with-gmp=/usr/local/gmp-4.3.2 --with-mpfr=/usr/local/mpfr-2.4.2 --...

    freesurfer重编环境

    It is necessary to run a pre-configure script, to create the platform specific tools required by configure (execute in the dev/ directory created by cvs checkout): ./setup_configure This script runs ...

    Tomcat6.x Configure DataSource

    NULL 博文链接:https://taink.iteye.com/blog/510076

    Android代码-Photo Effects

    in some filter, I use NDK to implement to make it more efficient Setup Install Android NDK and properly configure it: http://goo.gl/koTCb Get a clean clone of this project, import the library in ...

    mpich2-1.5.tar.gz

    这里我们执行的时候有时会出现这样的提示:-bash: ./configure: Permission denied 这句话是提醒我们权限不够,仔细看一下会发现configure没有x(执行)权限,这里我们要执行: chmod +x ./configure 即可,这句指令的...

    configure.in文件

    配置文件

    postgresql-12.2.tar.gz

    linux 安装包, 1、确认安装zlib和readline yum -y install readline-devel yum -y install zlib-devel ..../configure --prefix=/usr/local/sbin/postgresql 3、执行安装 make install

    pg_snapshot_too_old:用于在PostgreSQL中启用过旧快照的扩展

    ./configure make sudo make install 加载扩展 CREATE EXTENSION pg_snapshot_too_old; 配置扩展 全局配置 更新/etc/postgresql/9.4/main/postgresql.conf文件并添加以下内容: pg_snapshot_too_old_enabled = ...

    openCV4.6.0+android-ndk-r22-windows-x86_64编译的arm64-v8a动、静态库

    openCV4.6.0+android-ndk-r22-windows-x86_64编译的arm64-v8a动、静态库 ...CSDN审核可能较慢,如无法下载,可以过段时间再回来看下 仅供相关爱好者交流使用,请于下载24小时内删除

    安装lamp报错信息及解决方法

    /use/lib//usr/lib/libdb-4.2.so: could not read symbols: File in wrong format Notice: Following unknown configure options were used: usr/bin/ld: cannot find -lltdl /usr/bin/ld: cannot find -...

    pg-sync:node.js 的同步 lib​​pq 绑定

    同步 node.js 的同步、阻塞 libpq 绑定..../configure --prefix=/path/to/pgsql make make install 安装 npm install pg-sync 例子 var pgsync = require ( 'pg-sync' ) ; var client = new pgsync . Client

    PostgreSQL.for.Data.Architects.1783288604

    Configure parameters and change default settings for a PostgreSQL server Leverage the logging mechanism to identify errors and suboptimal queries Use replication to scale horizontally Set up backup ...

Global site tag (gtag.js) - Google Analytics