You are on page 1of 3

Deploy jBPM di JBoss

1. Ekstrak jboss-portal-2.7.2-bundled.zip

# unzip jboss-portal-2.7.2-bundled.zip

2. Create database jbpm

# /home/qa/apps/postgresSQL-8/bin/psql template1

template1=# create database jbpmdb;

Add a user called jbpm
template1=# create user jbpm with password 'jbpm';

Now grant all privileges on database

template1=# grant all privileges on database jbpmdb to jbpm;

3. Create table jBPM

# home/qa/apps/postgresSQL-8/bin/psql –U jbpm -d jbpmdb <
jbpm.jpdl.postgresql.sql

4. edit /home/qa/apps/jboss-portal-2.7.2/docs/examples/jca/postgres-ds.xml

<jndi-name>JbpmDS</jndi-name>
<connection-url>jdbc:mysql://127.0.0.1:5432/jbpmdb</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>jbpm</user-name>
<password>jbpm</password>

5. copy file postgres-ds.xml

# cp /home/qa/apps/jboss-portal-2.7.2/docs/examples/jca/postgres-
ds.xml /home/qa/apps/jboss-portal-2.7.2/server/default/deploy

6. copy postgresql jdbc driver

# cp /home/qa /src/postgresql-8.4-701.jdbc4.jar /home/qa/apps/jboss-
portal-2.7.2/server/default/lib

7.2.'M'.`CLASS_`.2.'organisation'.1).NULL.`NAME_`.NULL. (10.4.NULL.'M'. role dan membership into table.USER_ = u.NULL).'U'.NULL.'M'.domain'.NAME_ .NULL.2/server/default/conf/ login-config.NULL).xml # vi /home/qa/apps/jboss-portal-2. insert into `JBPM_ID_USER`(`ID_`.'hr'. (3.'M'.3.'G'. (2.5).domain'. (3.'admin@sample.NULL. insert into `JBPM_ID_GROUP`(`ID_`.`ROLE_`.domain'.NULL. (2.ID_ AND u. edit file login-config.'admin'.2).'M'.NULL. (4.jboss.domain'.'G'.NULL.ID_ AND m.NULL.NULL).'user@sample.xml <application-policy name = "jbpm"> <authentication> <login-module code="org.'manager').DatabaseServerLoginModule" flag="required"> <module-option name="dsJndiName">java:/JbpmDS</module-option> <module-option name="principalsQuery"> SELECT PASSWORD_ FROM JBPM_ID_USER WHERE NAME_=? </module-option> <module-option name="rolesQuery"> SELECT g. insert user.'shipper@sample. (3.'M'.'manager'. JBPM_ID_GROUP g WHERE g. (2.'manager'.NULL.NULL.'organisation'.NULL.`USER_`. (4.`GROUP_`) values (1. insert into `JBPM_ID_MEMBERSHIP`(`ID_`.'user'). (11.'sales'.NULL.`CLASS_`.NULL.NULL).'M'.3).NULL. JBPM_ID_MEMBERSHIP m.'U'.NULL. (12.'security-role'.NULL.security.1).5).'manager@sample.'G'.'M'. (8.NULL.TYPE_='security-role' AND m.'shipper'.'admin'.'Roles' FROM JBPM_ID_USER u.`PARENT_`) values (1.'M'.NULL. .NULL.'shipper').3. (9.'user'.'security-role'.NULL.`CLASS_`.4).`EMAIL_`.NULL.4).'boss'.2.NAME_=? </module-option> </login-module> </authentication> </application-policy> 8.5).3.2.2. (7.`TYPE_`.`NAME_`.'admin'). (5. (5.'security-role'.spi.'M'.'G'.3).'user'.`NAME_`.4.'M'.3).'U'.5).1. 7.'M'. (6.1.'U'.GROUP_ = g.`PASSWORD_`) values (1.auth. (4.'G'.NULL).

sh –b 0.Open http://localhost:8080/jbpm-console/ at browser.0.2/server/default/deploy 10. .war # cp /home/qa/src/ jbpm-console.9.0.2/server/default/deploy/bin/run.7.0 11.7.war /home/qa/apps/ jboss-portal- 2. copy jbpm-console.Deploy # /home/qa/apps/ jboss-portal-2.