create PostgreSQL Bonita databases:
createdb -h localhost -U postgres -E UTF8 bonita_journal
createdb -h localhost -U postgres -E UTF8 bonita_history
copy postgres JDBC driver jar to $JBOSS_HOME/server/default/lib
copy lib jars to $JBOSS_HOME/server/default/lib
copy conf./* to $JBOSS_HOME/server/default/conf/
edit $JBOSS_HOME/server/default/conf/bonita/server/default/conf/bonita-journal.properties
edit $JBOSS_HOME/server/default/conf/bonita/server/default/conf/bonita-history.properties
edit run.conf
JAVA_OPTS="$JAVA_OPTS -DBONITA_HOME=/opt/jboss-5.1.0.GA/server/default/bonita"
JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.config.file=/opt/jboss-5.1.0.GA/server/default/external/logging/logging.properties"
JAVA_OPTS="$JAVA_OPTS -Djava.security.auth.login.config=/opt/jboss-5.1.0.GA/server/default/external/security/jaas-jboss.cfg"
JAVA_OPTS="$JAVA_OPTS -Dorg.ow2.bonita.environment=/opt/jboss-5.1.0.GA/server/default/bonita/server/default/conf/bonita-environment.xml"
JAVA_OPTS="$JAVA_OPTS -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory"
edit ./server/default/conf/login-config.xml
</application-policy>
<application-policy name="BonitaAuth">
<authentication>
<login-module code="org.ow2.bonita.identity.auth.BonitaIdentityLoginModule" flag="required"/>
</authentication>
</application-policy>
<application-policy name="BonitaStore">
<authentication>
<login-module code="org.ow2.bonita.identity.auth.BonitaRemoteLoginModule" flag="required"/>
<login-module code="org.ow2.bonita.identity.auth.LocalStorageLoginModule" flag="required"/>
</authentication>
</application-policy>
JBoss security context:
-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
-Djava.naming.provider.url=jnp://localhost:1099
-Dorg.ow2.bonita.api-type=EJB3
-Dorg.ow2.bonita.environment=conf/bonita-environment.xml
No comments:
Post a Comment