Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 4. Persistence Setups
4.1. Configuring Persistence for Business Central Link kopierenLink in die Zwischenablage kopiert!
Red Hat JBoss BPM Suite is configured to use an example data source with Java Naming and Directory Interface (JNDI) name java:jboss/datasources/ExampleDS
. The example data source is not suitable for production.
To change the data source:
Prepare your database:
- Go to the Product Downloads on the Customer Portal and select Red Hat JBoss BPM Suite.
-
Download
Red Hat JBoss BPM Suite 6.3.0 Supplementary Tools
. -
Unzip
jboss-brms-bpmsuite-6.3-supplementary-tools/ddl-scripts
, for example into/tmp/ddl
. Import the DDL script for your database into the database you want to use, for example:
psql jbpm < /tmp/ddl/postgresql/postgresql-jbpm-schema.sql
psql jbpm < /tmp/ddl/postgresql/postgresql-jbpm-schema.sql
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Install the Java Database Connectivity (JDBC) driver onto your application plaform. For example, to deploy a PostgreSQL JDBC driver:
-
Copy your JDBC jar file into
EAP_HOME/modules/org/postgres/main/
. Create
EAP_HOME/modules/org/postgres/main/module.xml
with the following content:Copy to Clipboard Copied! Toggle word wrap Toggle overflow For further information about deploying JDBC drivers, see Install a JDBC Driver as a Core Module of the Red Hat JBoss Enterprise Application Platform Administration and Configuration Guide.
-
Copy your JDBC jar file into
Create a new data source:
-
Open
EAP_HOME/standalone/configuration/standalone.xml
and locate<datasources>
. Add your data source and the driver:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For more information, see Example PostgreSQL Datasource of the Red Hat JBoss Enterprise Application Platform Administration and Configuration Guide.
-
Open
Register the data source in Business Central:
-
Open
EAP_HOME/standalone/deployments/business-central.war/WEB-INF/classes/META-INF/persistence.xml
. Locate the
<jta-data-source>
tag and change it to the JNDI name of your data source, for example:<jta-data-source>java:jboss/datasources/PostgresqlDS</jta-data-source>
<jta-data-source>java:jboss/datasources/PostgresqlDS</jta-data-source>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Locate the
<properties>
tag and change thehibernate.dialect
property, for example:<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
-
Open