Proxool 的HouseKeeper NullPointerException

2010年6月10日 由 yybean 没有评论 »

使用Proxool连接池, 当在重启Tomcat容器时,出现    Exception in Thread "HouseKeeper" java.lang.NullPointerException 空指针异常错误。 原因是:

This is because Proxool is not being shutdown properly. If the JVM stops then Proxool recognises that and shuts down gracefully, but if you redeploy Proxool into some environments (for example, a servlet container) then Proxool needs to be explicitly told so by calling ProxoolFacade.shutdown(). If you have a servlet container then you could put it in the servlet’s destroy() method. Alternatively, use the ServletConfigurator to both configure and shutdown Proxool

阅读全文——共1403字

Proxool配置详解

2010年6月10日 由 yybean 没有评论 »

Proxool连接池是sourceforge下的一个开源项目,这个项目提供一个健壮、易用的连接池,最为关键的是这个连接池提供监控的功能,方便易用,便于发现连接泄漏的情况。开源项目地址是: http://proxool.sourceforge.net/

Proxool提供了很多配置属性,其属性意义如下,当然还是建议直接查看官方文档http://proxool.sourceforge.net/properties.html:

 

阅读全文——共4928字

Eclipse is running in a JRE, but a JDK is required

2010年6月10日 由 yybean 没有评论 »

Eclipse安装了Maven插件后,可能会报这种错误: “Eclipse is running in a JRE, but a JDK is required”

这是因为在Eclipse.ini配置中没有指定-vm参数,修改如下重启Eclipse问题就解决了:

 

阅读全文——共602字

用Artifactory管理内部Maven仓库

2010年6月9日 由 yybean 没有评论 »

1. 介绍

阅读全文——共10117字

枚举类型enum

2010年6月8日 由 yybean 没有评论 »

枚举构造enum,它是一种新的类型,允许用常量来表示特定的数据片断,而且全部都以类型安全的形式来表示.给俩连接,基本就ok

枚举类型入门

深入研究枚举类型

阅读全文——共1226字