|
|
JClarens ConfigurationThere are two main files that can be used to configure JClarens. The first is in The second file is in jclarens.db.dbDriver: The full name of the class that acts as the driver of the database. jclarens.db.dbURL: The URL of the database. jclarens.db.dbUser: The name of the database’s user jclarens.db.dbPassword: The password of the user specified in dbUser. The xmlrpc_handlers.properties file also contains the XML-RPC handlers and configuration settings for the handlers. Handlers take the form:
Configuration settings for a handler take the form:
For example, to register a new "mp3" handler with the setting "ogg=supported", you would use:
In order to set a particular configuration setting applicable for all handlers, add a property of the form: service.handlers.<property>=value The
The tomcat server must be restarted after making any configuration change before the change will take effect. List of Required Handler Properties: interface Besides these necessary properties, any other properties required by a service for its particular functionality can also be included in the xmlrpc_handlers.properties file. Two of the most important such properties are the paths to the host certificate and key to be used by JClarens. These must be specified in theservice.system.hostCertFile and
service.system.hostKeyFile properties. For further details on service adapter configuration, see
Service Adapter Configuration in the Developers Guide.
Plugging in MySQL (or other database servers):1. You can set up an alternate database (such as MySQL) for the access control lists (ACLs) as follows: a. Install MySQL (http://www.mysql.com) and create a user with the priveleges to perform all operations on the ClarensDB database. Usually the default passwordless root login suffices. However, in case of problems, log into mysql and issue the following command:
b. Log into mysql and issue the following commands:
c. If you decide not to use theMySQL database with a
passwordless root login, modify the properties d. Start JClarens' Tomcat servlet container. JClarens will automatically create all the tables it requires. 2. To manually add users to the authorization table, use a query like:
In addition, you can easily
use the web browser interface to modify and manage the JClarens ACLs,
instead of entering them directly in the database. For more information,
see Adding Access Control Lists
|