incubator-lokahi-commits mailing list archives

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

    [ https://issues.apache.org/jira/browse/LOKAHI-4?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568199#action_12568199
] 

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/lokahi.properties to use the new class (lokahi.template.engine=org.apache.lokahi.<template
class>)
Update conf/lokahi.properties to give examples to users adding the templates (lokahi.template.variables=<example
here>)

> Make configuration files (server.xml, workers.properties) based upon temples
> ----------------------------------------------------------------------------
>
>                 Key: LOKAHI-4
>                 URL: https://issues.apache.org/jira/browse/LOKAHI-4
>             Project: Lokahi
>          Issue Type: Improvement
>            Reporter: Steve Toback
>         Attachments: conf_DB-patch.txt, java-patch.txt, tomcat-api-worker-serverxmlfile-factory.txt,
vms-patch.txt, worker.zip
>
>
> As is right now - the server.xml file and workers.properties 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.


Mime
View raw message