Setting up JBoss to auto reconnect after database outage
1) <autoReconnect>true</autoReconnect>
2) <check-valid-connection-sql>an efficient select statement</check-valid-connection-sql>
3) <failOverReadOnly>false</failOverReadOnly>
4) <maxReconnects>50</maxReconnects>
5) <initialTimeout>15</initialTimeout>
2016年2月23日 星期二
2015年12月16日 星期三
2015年12月15日 星期二
JBoss常見的confing properties
There are a number of properties used by the micro-kernel during the bootstrap.
This documentation is heavily plagiarized from org.jboss.system.server.ServerConfig.
This documentation is heavily plagiarized from org.jboss.system.server.ServerConfig.
JBoss6 整合 Log4j
war部署在jboss6 ,Log4j若不起作用,需要做如下配置
在war的web-inf添加文件jboss-deployment-structure.xml
<?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure> <deployment> <exclusions> <module name="org.apache.log4j" /> <module name="org.slf4j" /> <module name="org.apache.commons.logging" /> </exclusions> </deployment> </jboss-deployment-structure>
參考來源
在war的web-inf添加文件jboss-deployment-structure.xml
<?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure> <deployment> <exclusions> <module name="org.apache.log4j" /> <module name="org.slf4j" /> <module name="org.apache.commons.logging" /> </exclusions> </deployment> </jboss-deployment-structure>
參考來源
訂閱:
文章 (Atom)
