[opencms-dev] Use JDBC/Data Source with OpenCMS in opencms.properties file?

Stephan Schrader zstephanz at gmail.com
Thu May 5 12:59:03 CEST 2022


Hey Paul,

you can do so with a custom SqlManager, Please have a look at:
https://gist.github.com/StephanSchrader/a26f2f80d876e9d052f6

Hope this helps

Stephan

Am Do., 5. Mai 2022 um 11:35 Uhr schrieb paul.finnedison--- via opencms-dev
<opencms-dev at opencms.org>:

> Hi all,
>
> I'm wondering if it is possible to configure OpenCMS via the
> opencms.properties file, to use a JDBC data source, instead of providing
> username and password there.
>
> # currently it is looking like this.
> db.pool.default.jdbcDriver=oracle.jdbc.driver.OracleDriver
> db.pool.default.jdbcUrl=jdbc:oracle:thin:@
> (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=host)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=dbservice)))
> db.pool.default.user=opencms_db_user
> db.pool.default.password=opencms_db_password
>
> But as OpenCMS is deployed in an application server (Weblogic) I'd like to
> use the datasources.
> Is there a way to do so?
>
> Kind regards,
> Paul​
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> https://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20220505/d560ee68/attachment.htm>


More information about the opencms-dev mailing list