- Download EAP-6.1.1 fro Red Hat Customer Portalhttps://access.redhat.com/downloads/
- Unzip the downloaded EAP-6.1.1 to your choice of location in your hard drive, Installation location will be your SERVER_HOME(eg, /home/{user_name}/{folder name}/jboss-eap-6.1).
- Download BPM Suite 6 from Red Hat Customer Portalhttps://access.redhat.com/downloads/
- Unzip downloaded bpm suite and copy the following directories into your local installation of EAP 6.1 (SERVER_HOME):
- bin
- domain
- modules
- standalone
- Change directory (cd) to your SERVER_HOME/standalone/configuration folder
- Open the standalone.xml and locate the datasources subsystem (<subsystem xmlns="urn:jboss:domain:datasources:1.1">) and add the following subsystem for mysql<subsystem xmlns="urn:jboss:domain:datasources:1.1">
<datasources>
<datasource jndi-name="java:jboss/datasources/jbpmDS" pool-name="jbpmDS" enabled="true" use-java-context="true">
<connection-url>jdbc:mysql://localhost:3306/jbpm</connection-url>
<driver>mysql</driver>
<security>
<user-name>{username}</user-name>
<password>{password}</password>
</security>
</datasource>
<drivers>
<driver name="mysql" module="com.mysqldatabase.mysql">
<driver-class>com.mysql.jdbc.Driver</driver-class>
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem> - Move to SERVER_HOME/modules/system/layers/base/com
- Create new folder mysqldatabase/mysql/main (eg,SERVER_HOME/modules/system/layers/base/com/mysqldatabase/mysql/main)
- Create module.xml file with following data
<properties>
<property name="jboss.api" value="unsupported"/>
</properties>
<resources>
<resource-root path="mysql-connector-java-5.1.31-bin.jar"/>
<!-- Insert resources here -->
</resources>
<dependencies>
<module name="javax.api" />
<module name="javax.mail.api" />
<module name="javax.servlet.api" />
<module name="javax.servlet.jsp.api" />
<module name="javax.transaction.api" />
</dependencies>
</module>
- Download mysql jdbc driver (eg,mysql-connector-java-5.1.31-bin.jar) and put into this location
- Move to SERVER_HOME/standalone/deployments/business-central.war/WEB-INF
- Open jboss-deployment-structure.xml and add the following line<module name="com.mysqldatabase.mysql" export="true" services="import" meta-inf="import"/
- Move to SERVER_HOME/standalone/deployments/business-central.war/WEB-INF/classes/META-INF
- Open persistence.xml
- Update the datasource name, make sure this is the same name you created in the standalone.xml datasource name in step6<jta-data-source>java:jboss/datasources/jbpmDS</jta-data-source>
- Replace the default h2 dialect information with the following code<properties><property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>......</properties>
- Move to SERVER_HOME/standalone/deployments/dashbuilder.war/WEB-INF
- Open jboss-deployment-structure.xml and add the the following code..<deployment><dependencies><module name="com.mysqldatabase.mysql" export="true" services="import" meta-inf="import"/
....
..
</dependencies>
<deployment>
- Open jboss-web.xml and update the jndi name, make sure this is the same name you created in the standalone.xml datasource name in step6 ...<jndi-name>java:jboss/datasources/jbpmDS</jndi-name>
- Make sure you save those above mentioned files as you modified.
- At this point your are done with all the settings, this is the time to test your installation
- Start the EAP severSERVER_HOME/bin/./standalone.sh
- Open your browser and enter the following url..
- Now you can view the Red Hat JBoss BPM Suite Business Central.
Great post. Was quite helpful.
ReplyDeleteGreat tips, many thanks for sharing. I have printed and will stick on the wall! I like this blog. Software cloud BPM
ReplyDelete