12.7.3.3 Set MSSQL as the data source
If you are running AEM forms with MSSQL database, you must
create three datasources
IDP_DS
,
EDC_DS
,
and
DefaultDS
.
-
Copy the database profiles from [DVD root]\third_party\jboss.zip\ [JBoss_root]\standalone\configuration
to the [AppServer_root]\standalone\configuration directory.
-
Open the [JBoss_root]/domain/configuration/domain_mssql.xml
file for editing.
-
Locate the
<datasources>
tag and delete
all the child nodes.
-
To create the IDP_DS datasource, in the <datasources>
node, add the following lines:
<datasources>
<datasource jta="true" jndi-name="java:/IDP_DS" pool-name="IDP_DS" enabled="true" use-java-context="true">
<connection-url>jdbc:sqlserver://localhost:1433;DatabaseName=adobe</connection-url>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<driver>sqlserver</driver>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<pool>
<min-pool-size>1</min-pool-size>
<max-pool-size>30</max-pool-size>
</pool>
<security>
<user-name>DB_USER</user-name>
<password>DB_PASSWORD</password>
</security>
<timeout>
<blocking-timeout-millis>20000</blocking-timeout-millis>
<idle-timeout-minutes>2</idle-timeout-minutes>
</timeout>
<statement>
<prepared-statement-cache-size>20</prepared-statement-cache-size>
</statement>
</datasource>
-
To create the EDC_DS datasource, after the IDP_DS datasource
nodes, in the <datasources> node, add the following lines:
<datasource jndi-name="java:/EDC_DS" pool-name="EDC_DS" enabled="true" use-java-context="true">
<connection-url>jdbc:sqlserver://localhost:1433;DatabaseName=adobe</connection-url>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<driver>sqlserver</driver>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<pool>
<min-pool-size>1</min-pool-size>
<max-pool-size>30</max-pool-size>
</pool>
<security>
<user-name>DB_USER</user-name>
<password>DB_PASSWORD</password>
</security>
<timeout>
<blocking-timeout-millis>20000</blocking-timeout-millis>
<idle-timeout-minutes>2</idle-timeout-minutes>
</timeout>
<statement>
<prepared-statement-cache-size>20</prepared-statement-cache-size>
</statement>
</datasource>
-
To create the DefaultDS datasource, after the EDC_DS datasource
nodes, in the <datasources> node, add the following lines:
<datasource jndi-name="java:/DefaultDS" pool-name="DefaultDS" enabled="true" use-java-context="true">
<connection-url>jdbc:sqlserver://localhost:1433;DatabaseName=adobe</connection-url>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<driver>sqlserver</driver>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<pool>
<min-pool-size>1</min-pool-size>
<max-pool-size>30</max-pool-size>
</pool>
<security>
<user-name>DB_USER</user-name>
<password>DB_PASSWORD</password>
</security>
<timeout>
<blocking-timeout-millis>20000</blocking-timeout-millis>
<idle-timeout-minutes>2</idle-timeout-minutes>
</timeout>
<statement>
<prepared-statement-cache-size>20</prepared-statement-cache-size>
</statement>
</datasource>
-
Set the following database specfic values for datasources
IDP_DS, EDC_DS, and DefaultDS:
-
Localhost
:
The name, IP address, or fully-qualified path of the computer that
hosts the database. The default is localhost
-
1433
: If MSSQL does not use the default port, provide
the appropriate port number.
-
DB_USER
,
DB_PASSWORD
: Provide the credentials
that the application server uses to access your database.
-
Modify the minimum and maximum values for the data source
connections:
Note:
If
your forms server handles heavy load, increase the number of maximum
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.
|
|
|