Encrypted Password for JNDI Resource
The database password in a JNDI Connection can optionally be encrypted, to avoid having the password saved in clear text in the panopticon.xml file. This requires the following:
- The PanopticonJNDIDataSourceFactory.jar from the Panopticon distribution zip archive must be placed in the tomcat/lib folder
 - The clear text password must be encrypted using PCLI and the Encrypt command
 - The special factory .JAR file must be specified in the Resource definition (see example below)
 
This is an example of a JNDI Connection Resource tag in panopticon.xml when using an encrypted password. The example assumes that a MonetDB database is used.
<Resource name="ds_secure"
            factory="com.panopticon.server.jndi.ds.SecureTomcatDataSourceFactory"
            auth="Container"
            type="javax.sql.DataSource"
            maxActive="100"
            maxIdle="30"
            maxWait="10000"
            username="monetdb"
            password="7QdcwxTWuj+moJPZiFXquQ=="
            driverClassName="org.monetdb.jdbc.MonetDriver"
            url="jdbc:monetdb://1.2.3.4:50000/altair"/>
(c) 2013-2025 Altair Engineering Inc. All Rights Reserved.