| Consortium Solutions Middleware Forge MyObjectWeb | |||||||||
![]() |
|
RUBiS
|
Configuration
Configuring Apache HTTP serverPHP versionIf you want to use the default properties file provided with RUBiS,
you just have to set your Example: If you don't want to modify your Servlets and EJB versionsEnsure that the Servlet_HTML or ejb_rubis_web directories are accessible through your Apache server (same procedure as for PHP). Then configure the Tomcat servlet server. Configure mod_jk:
Configuring Tomcat servlets serverFollow Tomcat documentation if you want to install RUBiS in a specific directory without using default settings nor having RUBiS servlets in your classpath, else just run the start/stop scripts provided with RUBiS. Configure ${CATALINA_HOME}/conf/server.xmlIn ${CATALINA_HOME}/conf/server.xml uncomment the line regarding AJP 1.3 connector if needed:
After the line:
Add:
Define a context for rubis like this:
Configure workers.properties (mod_jk)In the ${CATALINA_HOME}/conf/worker.properties file, configure: Set classpathIn ${CATALINA_HOME}/bin/setclasspath.sh replace
with
so that the existing classpath will be taken in account Specifying the EJB server and naming factory for the EJB versionThis is done in the tomcat_start.sh script by setting the According to the problem size you may also have to set the heap and stack sizes to prevent Tomcat from running out of memory. Example to use Tomcat with JOnAS using RMI on pouet.cs.rice.edu on default port 1099, using a maximum heap size of 512MB for Tomcat and a 16KB stack for each thread:
Configuring JBoss EJB serverEdit the ${JBOSS_DIST}/server/default/conf/standardjbosscmp-jdbc.xml (EJB 2.0)
and/or standardjaws.xml (EJB1.1), set the Add a mysql-ds.xml file to Add the mysql driver to Configuring JOnAS EJB serverSet the Configure the Set the path to the mysql driver in Add a mysql.properties file to Setting Up rubis.propertiesThis files contains information about the http server : name, port, paths for html pages and scripts for each version of RUBiS. The version of RUBiS and the transition table (workload pattern) currently used and are also defined in this file. Various parameters to generate data for the database are provided in this file : number of users, paths to the files with the list of regions and categories, percentage of items with various criteria, maximum number of bids per items, maximum number of comments per user, comments length, etc ... (example) | ||
Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster | Last modified at 2008-09-17 10:31 PM |