jdbc:oracle:thin:mmc/Mule123@oracledb.foobar.com:1521:XE
Configuring the Management Console to Use an External Database
By default, the Mule Management Console for Mule ESB uses its own internal Derby database. However, rather than the embedded Derby database you can configure the console to use an external Oracle database.
This page provides step-by-step instructions to configure the management console with a standalone Oracle database.
This information applies to 3.2.x management console data only. |
Oracle Database Set Up
Before beginning, you should have an Oracle database already installed on your system. These instructions assume the following:
-
An Oracle 10g XE database is already installed on the host
oracledb.foobar.com
, port 1521. -
The username
mmc
with the passwordMule123
has been set up on this database and all permissions have been granted to this user.
Given the above set up, the JDBC URL for accessing the Oracle database looks like the following:
Step-by-Step Configuration Instructions
-
Run the
mmc-oracle.sql
script, make sure all databases, indexes, and triggers are created successfully. -
Unpack the
mmc.war
to your filesystem. -
Delete jackrabbit-repo-ee.* from
WEB-INF/classes/META-INF
. -
Edit the supplied
jackrabbit-repo-ee.xml
so that it has correct JDBC URL, user name, and password:-
Replace "jdbc:oracle:thin:mmc/Mule123@oracledb.foobar.com:1521:XE" with your Oracle URL.
-
Replace "mmc" in <param name="user" value="mmc"/> with your user name.
-
Replace "Mule123" in <param name="password" value="Mule123"/> with your password.
-
Repeat this step for every FileSystem and PersistenceManager entry in
jackrabbit-repo-ee.xml
.
-
-
Copy the updated
jackrabbit-repo-ee.xml
toWEB-INF/classes/META-INF
. -
Edit the supplied
galaxy-applicationContext.xml
, replace the 'url' property value of the 'internalDataSource' bean with your database URL. -
Copy the
galaxy-applicationContext.xml
toWEB-INF/classes/META-INF
, overwriting the existing one. -
Copy the
scheduler-ee.properties
file toWEB-INF/classes/META-INF
, overwrite the old one, if exists. -
Edit the
datasource-ee.properties
file, replace thedatasource.username
,datasource.password
, anddatasource.url
properties (Note: The colon ( : ) in the URL must be escaped with a backslash.) -
Copy the
datasource-ee.properties
toWEB-INF/classes/META-INF
, and overwrite the old one, if exists. -
Copy the
ojdbc14.jar
andquartz-oracle-1.6.6.jar
toWEB-INF/lib
. -
Repackage the mmc.war and deploy.
-
Enjoy!