O'Reilly logo

Activiti 5.x Business Process Management Beginner's Guide by Irshad Mansuri, Dr. Zakir Laliwala

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action ­– changing to a production-ready database

Activiti comes with a default database, H2. This database is only used for the purposes of demonstration. For production, we have to change the database. So, let's see how we can configure the database:

  1. To configure Activiti with a database, we have to create a schema named MySQL.
  2. We will also create another schema named activitiin mysql.
  3. Now, we have to configure Activiti with MySQL. In order to do this, we have to browse to apache-tomcat-7.0.27/webapps/activiti-Explorer/WEB-INF/classes/db.properties.
  4. Make the following changes in db.properties:
    db=activiti
    
    jdbc.driver=com.mysql.jdbc.Driver
    
    jdbc.url=jdbc:mysql://localhost:3306/activiti
    
    jdbc.username=root
    
    jdbc.password=root
  5. Also, we have to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required