Hello,
I've been trying to incorporate the new changes to the Turbine Connection Pool
into Cocoon.
I've been able to get the changes from using PoolBrokerService.getInstance().XYZ() and
am using the
TurbineDB.XYZ(), however I am at a lose in the new way to init the TurbineConfig with
the properties
that Cocoon parses from the cocoon.properties file.
In Cocoon, there is in the org.apache.cocoon.processor.xsp.XSPProcessor the following
(see below)
that gets all of the parameters from the properties file that relate to the Turbine
connection pool
and (used to) called a static TurbineResourceService.setProperties(poolProperties) to
init the pool
with all of the correct parameters. However that has changed.
TurbineResourceService.setProperties() has been deprecated away. I need to use the
TurbineConfig
interface, but I am getting bogged down in the reflection of TurbineServices to
TurbineResourceService.
What should I be looking at, or how should I now call the private void
init(Properties props) in
org.apache.turbine.services.resources.TurbineResourceService to init the pool service?
Here is the snipped of code from org.apache.cocoon.processor.xsp.XSPProcessor that
calles Turbine
code:
Configurations poolConf = conf.getConfigurations("pool");
Properties poolProperties = poolConf.getProperties();
poolProperties.put("services.TurbineResourceService.classname",
"org.apache.turbine.services.resources.TurbineResourceService");
Enumeration en = poolConf.keys();
while (en.hasMoreElements()) {
String key = (String) en.nextElement();
String value = (String) poolConf.get(key);
logger.log("@@@"+key+"="+value+"@@@", Logger.DEBUG);
}
try {
TurbineResourceService.setProperties(poolProperties);
logger.log("TurbineResources all set!!", Logger.DEBUG);
} catch (IOException ioexp) {
Thanks.
--
Brian Millett
Enterprise Consulting Group "Shifts in paradigms
(314) 205-9030 often cause nose bleeds."
[EMAIL PROTECTED] Greg Glenn
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]