Skip to main content
A Open Source Solution
Home Download Support Configuration Development ImagoX

The Counter is a good candidate for the Launcher mechanism, otherwise it must create a new instance of the Counter class on each request. If a database-based approach is chosen any database supported by LDBC may be used. The following configuration lines go into the imago.properties file.

Launcher-style configuration

File-based counter:


init.Launcher.class.Counter=org.xenei.imagoX.counter.ImagoCounter
init.Launcher.init.Counter.class=org.xenei.imagoX.counter.FileCounterData
init.Launcher.init.Counter.init.directory=/tmp

				

Database-based counter:


init.Launcher.class.Counter=org.xenei.imagoX.counter.ImagoCounter
init.Launcher.init.Counter.class=org.xenei.imagoX.counter.DBCounterData
init.Launcher.init.Counter.init.db.driver=com.mysql.jdbc.Driver
init.Launcher.init.Counter.init.db.host=jdbc:mysql://db.xenei.org/imago
init.Launcher.init.Counter.init.db.user=imago
init.Launcher.init.Counter.init.db.password=imago

				

imago.properties-style configuration

File-based counter:


org.xenei.imagoX.counter.ImagoCounter.class=org.xenei.imagoX.counter.FileCounterData
org.xenei.imagoX.counter.ImagoCounter.init.directory=/tmp

				

Database-based counter:


init.Launcher.class.Counter=org.xenei.imagoX.counter.ImagoCounter
org.xenei.imagoX.counter.ImagoCounter.class=org.xenei.imagoX.counter.DBCounterData
org.xenei.imagoX.counter.ImagoCounter.init.db.driver=com.mysql.jdbc.Driver
org.xenei.imagoX.counter.ImagoCounter.init.db.host=jdbc:mysql://db.xenei.org/imago
org.xenei.imagoX.counter.ImagoCounter.init.db.user=imago
org.xenei.imagoX.counter.ImagoCounter.init.db.password=imago

				
All trademarks and copyrights are the property of their respective owners.
Copyright © 2002-2004 by Xenei.com, All Rights Reserved
OpenSource.org
AnyBrowser.org
Xenei.org - Open Source Solutions