incubator-lokahi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Feist (JIRA)" <>
Subject [jira] Commented: (LOKAHI-4) Make configuration files (server.xml, based upon temples
Date Tue, 12 Feb 2008 16:33:08 GMT


Jeff Feist commented on LOKAHI-4:

And finally, instructions on how to implement your own Templating Engine. (This should go
in documentation somewhere.)

Creating a new Template Engine
Create a new class that implements TemplateEngine
This class needs to implement 2 methods
	- Collection<String> buildConfs(Object worker) {} 
		- build all of the config files for a worker
	- String buildConf(Object[] params) {}
		- builds a specifc config file for a worker
Update conf/ to use the new class (lokahi.template.engine=org.apache.lokahi.<template
Update conf/ to give examples to users adding the templates (lokahi.template.variables=<example

> Make configuration files (server.xml, based upon temples
> ----------------------------------------------------------------------------
>                 Key: LOKAHI-4
>                 URL:
>             Project: Lokahi
>          Issue Type: Improvement
>            Reporter: Steve Toback
>         Attachments: conf_DB-patch.txt, java-patch.txt, tomcat-api-worker-serverxmlfile-factory.txt,
> As is right now - the server.xml file and files are generated by Lokahi
- and are hard-coded into the respective org.apache.lokahi.modjk.WorkersPropertiesFile and
org.apache.lokahi.tomcat.worker.ServerXmlFile classes 
> This does not allow server.xml files to differ based upon the template used.  Or newer
versions of mod_jk.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message