To enable
Adobe pre-configured JBoss to connect to the MySQL database that stores
LiveCycle data, you must create a data source file and deploy it
to the instance of JBoss where you will deploy LiveCycle.
5.4.1.1 Edit adobe-ds.xml fileBefore configuring the MySQL data source, you must have
already created the database on MySQL as described in 4.6 Creating a MySQL database.
Open the [appserver root]/server/lc_mysql/deploy/adobe-ds.xml
file in a text editor and locate this line for both IDP_DS and EDC_DS:
<connection-url>jdbc:mysql://localhost:3306/adobe</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<security-domain>MySqlDbRealm</security-domain>
Replace the following text in the file with values that are
specific to your database:
localhost: The name,
IP address, or fully-qualified path of the computer that
hosts the database. The default is localhost.
3306: The port used to access the database. The default
port is 3306.
adobe: The name of the database that stores the data.
Replace the default value, adobe, with your database
name.
In the lines that follow the <connection-url> settings,
locate the user-name and password settings
and replace the default values with the user name and password that
the application server uses to access your database.
Ensure that the minimum and maximum values for the data source
connections are set as follows:
For IDP_DS:
<min-pool-size>1</min-pool-size>
<max-pool-size>30</max-pool-size>
For EDC_DS:
<min-pool-size>1</min-pool-size>
<max-pool-size>20</max-pool-size>
Note: If your LiveCycle server handles heavy load, increase
the maximum number of JDBC connections to ensure that all jobs are
processed. In such cases, increase <max-pool-size> to
50 or more for both IDP_DS and EDC_DS.
Save and close the file.
5.4.1.2 Edit mysql-ds.xml fileIf you are running LiveCycle with a MySQL database, you
must set MySQL as the default data source for JBoss. This procedure
assumes that the MySQL JDBC driver is installed in the [appserver root]/server/lc_mysql/lib
directory.
Open the [appserver root]/server/lc_mysql/deploy/mysql-ds.xml
file in a text editor and modify the <local-tx-datasource> element
with your MySQL connection settings:
<jndi-name>DefaultDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/adobe/</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<security-domain>MySqlDbRealm</security-domain>
Replace the following text in the file with values that are
specific to your database:
localhost: Replace
this value with the name of the server hosting the database.
3306:Replace this value with the port number
for your database server.
adobe: Replace this value with the database
that will connect with LiveCycle.
In the lines that follow the <connection-url> settings,
locate the user-name and password settings
and replace the default values with the user name and password that
the application server uses to access your database.
Save and close the file.
5.4.1.3 Edit login-config.xml fileOpen the [appserver root]/server/lc_mysql/conf/login-config.xml
file in a text editor and modify the following code within the <policy> element:
<application-policy name="MySqlDbRealm">
<authentication>
<login-module
code="org.jboss.resource.security.SecureIdentityLoginModule" flag
= "required">
<module-option name="principal">adobe</module-option>
<module-option name="userName">adobe</module-option>
<module-option name="password">adobe</module-option>
<module-option
name="managedConnectionFactoryName">jboss.jca:service=LocalTxCM,
name=Default DS </module-option>
</login-module>
</authentication>
</application-policy>
Replace the bold text with values that are specific to your
database so that the application server can access your database.
Save and close the file.
Start JBoss.
|
|
|