I've decided to use the connection pool in Turbine for I project that I'm
working on, but I'm having a little trouble getting it going. I'm getting a
NullPointerException from TurbineResources.
java.lang.NullPointerException
at
org.apache.turbine.services.resources.TurbineResources.getString(TurbineReso
urces.java:330)
at
org.apache.turbine.util.db.pool.DBBroker.getConnection(DBBroker.java:132)
at
com.twelvefifteenmedia.vs2000.beans.DbBean.connect(DbBean.java:38)
Looks like the docs are telling me that I need to initialize
TurbineResources with something like this:
TurbineResourceService.setPropertiesFileName("d:/foo/TurbineResources.proper
ties");
However, I'd really like to avoid hard coding the path to the resource file.
I've used ResourceBundle in the past to avoid this. Is there a reason why it
was done this way or am I missing something?
Thanks.
--------------------------
Tim Trentham
Director of Technology
1215 Media
V: 512.479.4653
F: 512.478.5437
[EMAIL PROTECTED]
--------------------------
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]