resource-ref for relational persistence in web.xml

17 views
Skip to first unread message

Aaron Spike

unread,
May 24, 2024, 2:16:12 PMMay 24
to Orbeon Forms
I just noticed the following section in my web.xml:

    <!-- Uncomment this for the relational persistence, and change oracle if necessary -->
    <!--
    <resource-ref>
        <description>DataSource</description>
        <res-ref-name>jdbc/oracle</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
    </resource-ref>-->


This has been commented our in my web.xml since at least 2020. I've been using relational persistence with postgresql the whole time, and as far as I can tell there haven't been any problems. I've configured JDBC resources for postgresql in the context.xml file as described in the Tomcat section of the documentation (https://doc.orbeon.com/installation/tomcat#datasource-setup). Am I missing something or risking something because I have this section commented out in my web.xml file?

Aaron Spike


This electronic communication, including any attached documents, may contain confidential and/or legally privileged information that is intended only for use by the recipient(s) named above. If you have received this communication in error, please notify the sender immediately and delete the communication and any attachments. Views expressed by the author do not necessarily represent those of Martin Luther College.

Alessandro Vernet

unread,
May 27, 2024, 5:23:44 PMMay 27
to orb...@googlegroups.com
Hi Aaron,

Some application servers, like Tomcat, do not require you to add this `<resource-ref>` element, while others, like WildFly, do. Since you are using Tomcat, you do not need it. Therefore, you can safely remove the commented configuration if you believe it might cause confusion in the future.

-Alex

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orbeon+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/51cf9a7b-7604-44e4-88de-27377553b7e1n%40googlegroups.com.

Aaron Spike

unread,
Jun 10, 2024, 2:03:25 PMJun 10
to Orbeon Forms
Thanks you!
Reply all
Reply to author
Forward
0 new messages