错误:
- [ERROR][-- ::,][org.hibernate.engine.jdbc.spi.SqlExceptionHelper]Connection pool exhausted - try increasing 'maxPoolSize' and/or 'borrowConnectionTimeout' on the DataSourceBean.
- [ERROR][-- ::,][org.apache.struts2.dispatcher.Dispatcher]Exception occurred during processing request: Could not open connection
在AtomikosDataSourceBean配置添加如下代码:
- <property name="minPoolSize" value="5" />
- <property name="maxPoolSize" value="20" />
- <property name="borrowConnectionTimeout" value="60" />
- 或者如图