Why webFlange?

I have worked on web projects for many years and have noticed that project teams tend to get caught up doing performance testing at the last minute, just before going live. This always puts the project over time and sometimes causes technical problems post implementation. webFlange can be used as part of your continuous integration practice to provide performance testing on a regular basis while in the development phase.


How do I install webFlange?
  • Deploy webflange.war to Tomcat and navigate to http://localhost:8080/webflange
  • Login with user/password super/super
  • This will use hsqldb as your database

How do I configure webflange to use mysql?

Change the dataSource and hibernateProperties bean configurations in TOMCAT_HOME/webapps/webflange/WEB-INF/applicationContext.xml to the following

	<bean id="dataSource"
		<property name="driverClass" value="com.mysql.jdbc.Driver" />
		<property name="jdbcUrl"
			value="jdbc:mysql://localhost:3306/webflange?autoReconnect=true" />
		<property name="user" value="webflange" />
		<property name="password" value="webflange" />
	<bean id="hibernateProperties"
		<property name="properties">
				<prop key="hibernate.hbm2ddl.auto">update</prop>
				<prop key="hibernate.dialect">
				<prop key="hibernate.query.substitutions">
					true 'T', false 'F'
				<prop key="hibernate.show_sql">false</prop>
				<prop key="hibernate.c3p0.minPoolSize">5</prop>
				<prop key="hibernate.c3p0.maxPoolSize">20</prop>
				<prop key="hibernate.c3p0.timeout">600</prop>
				<prop key="hibernate.c3p0.max_statement">50</prop>
				<prop key="hibernate.c3p0.testConnectionOnCheckout">
				<prop key="hibernate.c3p0.idle_test_period">3600</prop>

Run the following commands in mysql as user root

	create database webflange;
	GRANT ALL PRIVILEGES ON webflange.* TO 'webflange'@'localhost' IDENTIFIED BY 'webflange' WITH GRANT OPTION;

Restart tomcat