使用的是jboss7.1.1, jndi的配置在$JBOSS_HOME/standalone/configuration/standalone.xml中进行配置。配置jndi时有很多参数,解释下用到的一些参数:

 
jndi-name
The JNDI name under which the Datasource should be bound.
datasource需要绑定的JNDI名称。
 
use-java-context
Boolean value indicating whether the jndi-name should be prefixed with java:. This prefix causes the Datasource to only be accessible from within the JBoss Enterprise Platform virtual machine. Defaults toTRUE.
布尔值表明是否在JNDI名称前加上前缀 "java:",默认值为"TRUE",也就是添加前缀"java:"
 
user-name
The user name used to create the connection to the datasource.
创建链接连接数据源的时候使用的用户名
 
password
The password used to create the connection to the datasource.
创建链接连接数据源的时候使用的密码
 
connection-url
The JDBC driver connection URL string
连接数据源的URL字符串
 
min-pool-size
The minimum number of connections maintained in the pool. Unless is TRUE, the pool remains empty until the first use, at which point the pool is filled to the . When the pool size drops below the due to idle timeouts, the pool is refilled to the . Defaults to 0.
数据库连接池保留的最小连接数。除非参数值为"TRUE",否则连接池在第一次使用前都将保持空连接数,当第一次使用后,数据库连接池会自动将连接数填满为所配置的最小连接数。当因为闲置而超时时,连接池将删除连接至最小连接数以下,但之后连接池会重新将连接数填为所配置的最小连接数。默认值为0.
 
max-pool-size
The maximum number of connections allowed in the pool. Defaults to 20.
数据库连接池允许的最大连接数。默认值为20
 
prefill
Whether to attempt to prefill the connection pool to the minimum number of connections. Only supporting pools (OnePool) support this feature. A warning is logged if the pool does not support prefilling. Defaults to TRUE.
是否在一开始的时候就尝试将连接池的连接数预先增加为配置的最小连接个数;否则在第一次获取连接时才启动创建最小连接个数。只有支持的连接池支持这个特性。如果连接池不支持预先填满,那么会有一个警告被打印。默认值为"TRUE"
 
blocking-timeout-millis
The length of time, in milliseconds, to wait for a connection to become available when all the connections are checked out. Defaults to 30000, which is 30 seconds.
当所有的连接都被占用后,从连接池中等待一个连接变为可用的时间;如果超过该时间,则超时。单位是毫秒。默认是30000毫秒,也就是30秒。
 
idle-timeout-minutes
The maximum time, in minutes, before an idle connection is closed. A value of 0 disables timeout. Defaults to 15 minutes.
一个连接最大的空闲时间,超过这个时间,连接就会被关闭。如果值设置为0则禁用这个功能,默认为15分钟。后台程序会定时清理过度空闲的连接来节省数据库的连接资源。
 
valid-connection-checker
A class that checks whether a connection is valid using a vendor-specific mechanism.
使用一个厂商的机制来检查一个连接是否有效。
 
check-valid-connection-sql
An SQL statement that is executed before the connection is checked out from the pool to make sure it is still valid. If the SQL statement fails, the connection is closed and a new one is created.
在连接从连接池中被占用前会执行该SQL,来确保连接仍然有效。如果SQL执行失败,那么连接会被关闭并且同时会创建一个新的连接。
 
exception-sorter
A class that parses vendor-specific messages to determine whether SQL errors are fatal, and destroys the connection if so. If empty, no errors are treated as fatal.
默认情况下,jboss不会对无效的连接进行销毁,如果我们需要对异常列表中的连接进行销毁,则需要在设置该配置。该类解析每个厂商不同的应答来决定SQL执行的错误是否是致命的,如果是的话就会销毁该连接。如果为空的话,那么任何错误都不会被认为是致命的。

jboss jndi配置部分参数详解的更多相关文章

  1. Nginx 配置及参数详解

    Nginx 配置及参数详解 Nginx Location 指令语法 如下就是常用的 location 配置的语法格式,其中modifier是可选的,location_match就是制定 URI 应该去 ...

  2. Redis 主从配置和参数详解

    安装redis 下载redis wget http://download.redis.io/releases/redis-3.0.7.tar.gz 解压redis tar -xvf redis-.ta ...

  3. pureftpd安装配置-pureftp参数详解(一)

    1. 下载 #cd /usr/local/src/ #wget ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.30.tar.g ...

  4. vsftpd 配置用户及根目录及其参数详解

    vsftpd 常用功能参数配置及参数详解 Table of Contents 1. 配置超级服务 2. 配置匿名用户 3. 配置本地用户登录 4. 配置虚拟用户登录 5. 使用SSL登入 6. 日志文 ...

  5. Nginx主配置参数详解,Nginx配置网站

    1.Niginx主配置文件参数详解 a.上面博客说了在Linux中安装nginx.博文地址为:http://www.cnblogs.com/hanyinglong/p/5102141.html b.当 ...

  6. mha配置参数详解

    mha配置参数详解: 参数名字 是否必须 参数作用域 默认值 示例 hostname Yes Local Only - hostname=mysql_server1, hostname=192.168 ...

  7. reids配置参数详解

    转自:http://www.jb51.net/article/60627.htm reids配置参数详解 #daemonize no  默认情况下, redis 不是在后台运行的,如果需要在后台运行, ...

  8. nginx配置参数详解

    配置参数详解 user nginx nginx ; Nginx用户及组:用户 组.window下不指定 worker_processes 8; 工作进程:数目.根据硬件调整,通常等于CPU数量或者2倍 ...

  9. Redis配置参数详解

    Redis配置参数详解 /********************************* GENERAL *********************************/ // 是否作为守护进 ...

随机推荐

  1. Oracle 导入导出数据 imp/exp impdp/expdp

    IMPDP/EXPDP 一.创建逻辑目录,该命令不会在操作系统创建真正的目录,最好以system等管理员创建.         create directory dpdata as '/opt'; 二 ...

  2. win8 获取管理员权限

    Win8 下动不动 就弹出要管理员权限什么.......   网上找到很多方法.  什么注册表什么..... 不行..   以下这个方法可行. 按WIN+R,运行对话框中输入gpedit.msc,开启 ...

  3. Oracle 显示时间问题

    在部署的时候. 显示的时间为会 2014/1/1 9:00:00 pm   但开发过程中显示为正常: 2014-1-1 21:00:00   解决方法: 1. Oracle数据库的时间格式没有问题, ...

  4. PHP READ PPT FILE

    function parsePPT($filename) { // This approach uses detection of the string "chr(0f).Hex_value ...

  5. POJ 2480 Longge's problem (积性函数,欧拉函数)

    题意:求∑gcd(i,n),1<=i<=n思路:f(n)=∑gcd(i,n),1<=i<=n可以知道,其实f(n)=sum(p*φ(n/p)),其中p是n的因子.为什么呢?原因 ...

  6. POJ 1607

    #include<iostream> #include<iomanip> using namespace std; int main() { //freopen("a ...

  7. Mita和Maui

    参考:http://blog.csdn.net/popeer/article/details/6002541 UI自动化的框架,MS内部使用的不对外开放的框架.UI Automation 离不开像Mi ...

  8. Java科普之基础知识回顾

    本文来自http://blog.csdn.net/liuxian13183/ ,引用必须注明出处! Java语言由C衍生,丢弃C中的指针,使用"发出指令-接收返回值-验证-发出指令-接收返回 ...

  9. 针对安卓java入门:运算符和表达式

    逻辑运算符 &&和&判断是一样的,区别在于过程,&会把整个过程算一遍,&&一旦碰到false就不会往下

  10. 300. Longest Increasing Subsequence

    题目: Given an unsorted array of integers, find the length of longest increasing subsequence. For exam ...