on 1/8/2001 2:11 PM, "Brian P Millett" <[EMAIL PROTECTED]> wrote:

> 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) {

The TurbineConfig class javadoc gives clear examples of the new process to
set the properties file location.

thanks,

-jon

-- 
Honk if you love peace and quiet.




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to