| Consortium Solutions Middleware Forge MyObjectWeb | |||||||||
![]() |
|
RUBiS
|
Compiling and running RUBiS
Software RequirementsFor all the versions of the auction site benchmark:
For the EJB version :
For the Java servlets version:
For the PHP version:
Setting up the make process (config.mk file)Various environment variables are defined in the config.mk file. Each directory contains its own Makefile that includes values defined in the top config.mk file. You have to set the value to match your configuration: JAVA = path to the program execution tool (java) JAVAC = path to the java compiler (javac or jikes) RMIC = path to the stub generator (rmic) CLASSPATH = your classpath including path to j2ee.jar and servlet.jar. JAVADOC = path to javadoc, the documentation generator JAR = path to the jar util EJB_SERVER = choose the EJB Server you want to use (either jonas or jboss) - Warning, this value is case sensitive. DB_SERVER = choose the Database server you will use (either MySQL or PostgreSQL) - Warning, this value is case sensitive. Setting up the build process for Ant (build.properties file)Various environment variables are defined in the build.properties file. Each directory contains its own build.xml file that includes values defined in the top build.properties file. You have to set the value to match your configuration: src = directory containing the source files classes.dir = directory in which the .class files will be created dist = directory in which the jar and war files will be created web.dir = directory containing the html files for building a war file ejb.server = choose the EJB Server you want to use (either jonas or jboss) - Warning, this value is case sensitive. db.server = choose the Database server you will use (either MySQL or PostgreSQL) - Warning, this value is case sensitive. Compiling and RunningFrom the top directory (/RUBiS/Makefile or /RUBiS/build.xml), you can use:
EJB version Setup the environment variables for the EJB server and the database server in the config.mk file for make or in the build.properties file for Ant then go in the subdirectory of the version you are interested in (/RUBiS/EJB_VersionName). Available commands are:
To use the EJB version of RUBiS you first have to configure and start the Apache HTTP server, JOnAS EJB server or JBoss EJB server and Tomcat. Servlets version Go in the subdirectory of the servlets version (/RUBiS/Servlets). Available commands are:
To use the servlet version of RUBiS, you first have to configure and start the Apache HTTP server and Tomcat. PHP version To use the PHP version of RUBiS, you just have to configure and start the Apache HTTP server. Client emulator From the top directory (/RUBiS), you can use:
To select the workload and the version to use, you have to setup properly your rubis.properties file. API documentation From the top directory (/RUBiS), you can use:
Go in the subdirectory of the version you are interested in:
Go in the subdirectory of the version you are interested in:
Performance Tuning NotesHere are some hints if you want to handle a high number of clients with RUBiS:
Example for MyIsam non-transactional tables:
| ||||||||||||||||||||||||||||||||
Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster | Last modified at 2008-09-17 10:31 PM |