`

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
分享到:
评论

相关推荐

    PostgreSQL 数据库集群和PL/Proxy配置安装指南PL/Proxy和PostgreSQL集群的结构关系可以用下图清楚地表示,对PL/Proxy和PostgreSQL集群还不太了解的朋友可以看Skype Plans for PostgreSQL to Scale to 1 Billion Users这篇文章。

    ### PostgreSQL 数据库集群与 PL/Proxy 的配置安装详解 #### 一、PostgreSQL 数据库集群概念 PostgreSQL 是一种开源的关系型数据库系统,以其强大的功能、稳定性和扩展性而受到广泛认可。对于需要处理大量数据或高...

    postgresql12主从集群安装

    - 配置和编译:`./configure --prefix=/usr/local/pgsql/postgresql-12.2`,`make`,`make install` 7. 初始化数据库: - 创建数据目录:`mkdir -p /usr/local/pgsql/postgresql-12.2/data` - 初始化:`/usr/...

    postgresql &pg源码安装编译教程

    ./configure --prefix=/home/postgres/postgresql --with-perl --with-python --with-tcl --enable-nls --with-gssapi --with-openssl --with-pam --with-ldap --with-libxml --with-libxslt --with-uuid=e2fs --...

    postgresql14加postgis3.2在centos离线编译安装

    sudo /usr/local/pgsql/bin/createdb -E UTF8 template_postgis sudo /usr/local/pgsql/share/postgresql/extension/create_postgis_extensions.sql template_postgis ``` 最后,配置PostgreSQL服务以在系统启动时...

    I240W-QONU配置

    - 设置各数据端口的状态为开启:`configure interface port uni:1/1/3/8/1/1/1 admin-up`、`configure interface port uni:1/1/3/8/1/1/2 admin-up`、`configure interface port uni:1/1/3/8/1/1/3 admin-up`、`...

    Linux安装PostgreSQL和配置PHP扩展.pdf

    [root@localhost postgresql-8.4.0] ./configure --prefix=/usr/local/pgsql [root@localhost postgresql-8.4.0] gmake [root@localhost postgresql-8.4.0] gmake install ``` 4. 配置环境变量,使得 PostgreSQL ...

    Linux环境PostgreSQL源码编译安装1

    ./configure --prefix=/usr/local/postgresql --without-readline --without-zlib ``` 4. 编译和安装PostgreSQL: ``` make make install ``` 5. 安装contrib目录中的附加工具: ``` cd /usr/local/...

    postgresql分布式安装部署

    ./configure --with-pgsql=/var/lib/postgresql --with-pgsql-libdir=/usr/lib/postgresql/9.1/lib --with-pgsql-includedir=/usr/include/postgresql ``` - 在Node1上编译并安装Pgpool: ```bash make && make...

    Ubuntu 下源码安装Postgresql

    安装依赖项完成后,使用 configure 命令对 Postgresql 进行编译和安装: ./configure --prefix=$PostgresqlPath make make install 其中,$PostgresqlPath 是 Postgresql 的安装目录,例如 /softwares/postgresql...

    PostgreSQL9.5安装

    sudo /usr/pgsql-9.5/bin/postgresql95-configure --auth=md5 sudo systemctl start postgresql-9.5.service sudo /usr/pgsql-9.5/bin/initdb -D /var/lib/pgsql/9.5/data ``` 5. **设置开机启动并启动服务**:...

    01 PostgreSQL_9_源码安装

    ### PostgreSQL 9.x 源码安装指南 #### 一、引言 本文将详细介绍如何在CentOS 6.2环境下使用源代码安装PostgreSQL 9.5.6/9.6.2版本。PostgreSQL是一款强大的开源关系型数据库管理系统,因其稳定性、安全性及丰富的...

    amber安装过程命令记录

    ./configure --prefix=/home/$USERNAME/openmpi ``` 二、amber安装环境依赖更新补丁 在安装amber之前,需要更新amber安装环境依赖补丁,命令记录如下: ``` export AMBERHOME=/opt/amber/amber18 export CUDA_...

    Linux下PostgreSQL安装与开机启动

    ### Linux下PostgreSQL安装与开机启动详解 #### 1. 添加用户及创建目录 为了确保PostgreSQL服务的安全性,我们通常会为它创建一个独立的系统用户。这一步骤包括了用户创建、密码设定以及相关目录的搭建。 ##### ...

    PostgreSQL-9.5.5解压后将内容上传到linux服务器.zip

    在解压后的目录中,使用`configure`脚本来配置编译环境,然后使用`make`和`make install`来编译和安装PostgreSQL。这些步骤通常如下: ```bash cd postgresql-9.5.5 ./configure make sudo make install ``...

    linux离线安装postgresql与sde与postgis.zip

    在Linux环境中离线安装PostgreSQL、SDE(ArcGIS的Spatial Database Engine)和PostGIS是一项常见但有时复杂的任务,尤其当服务器处于内网环境时,无法直接访问互联网资源。本指南将详细介绍如何在Linux系统中进行...

    linux postgresql 安装步骤

    ### Linux环境下PostgreSQL安装与配置详解 在Linux环境中部署PostgreSQL数据库是一项常见且重要的任务,尤其是在需要高性能数据库管理系统的企业级应用中。本文将详细介绍在Linux系统下安装和配置PostgreSQL的过程...

    postgresql 编译调试镜像

    PostgreSQL是一种开源的对象关系型数据库管理系统(ORDBMS),它以其强大的功能、高度的稳定性以及对ACID(原子性、一致性、隔离性、持久性)事务的支持而受到广大开发者的欢迎。本文将深入探讨如何在Linux环境下,...

    linux下postgresql安装教程

    3. 配置安装目录:使用 configure 命令指定安装目录,例如 ./configure --prefix=/usr/local/pgsql。 4. 安装 PostgreSQL:使用 make 和 make install 命令安装 PostgreSQL。 5. 解决 readline 库依赖问题:如果安装...

    centos configure

    ### CentOS Configure详解 #### 一、引言 在Linux环境下,尤其是CentOS系统中,通过源代码编译安装软件是一项常见的需求。对于开发者和系统管理员而言,熟练掌握编译安装的过程不仅能提高工作效率,还能增强对系统...

Global site tag (gtag.js) - Google Analytics