Documentation Center

Configuring a storage medium through JNDI (legacy feature)

If you are running your microservices in a Java/JSP Web application (a deprecated setup), you can make a (Microsoft SQL Server or Oracle) database available as a storage medium through JNDI (that is, through your Web application server) by adding a Storage element to the Storage Layer configuration file. Because this kind of setup is deprecated, SDL recommends against using JNDI: support for it will be abandoned in a future release, together with support for a setup with non-standalone microservices.

Procedure

  1. In the configuration directory of the Role, open cd_storage_conf.xml for editing.
  2. In the Storages element, ensure the presence of the following <Storage> element, uncommented:
    <Storage Type="persistence" Id="UNIQUE_ID" dialect="DIALECT_TYPE" 
    	Class="com.tridion.storage.persistence.JPADAOFactory" JNDIName="JNDI_NAME" />
    where:
    • UNIQUE_ID is a string of your choosing that uniquely identifies this storage medium
    • DIALECT_TYPE identifies the type of database that JNDI connects to
    • JNDI_NAME identifies your data source (the exact inner structure of this string depends on the Web application server you use)
    DIALECT_TYPE must be one of the following:
    ORACLESQL
    Value for storage in an Oracle database
    MSSQL
    Value for storage in a Microsoft SQL Server database
  3. Save and close cd_storage_conf.xml.