How to Configure Oracle XML DB Servlets Programmatically
(Doc ID 731362.1)
Last updated on APRIL 29, 2020
Applies to:
Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.1.0.6 [Release 10.2 to 11.1]Information in this document applies to any platform.
Information in this document applies to any platform.
Goal
In the chapter Writing Oracle XML DB Applications in Java in the Oracle XMLDB Developers guide under Configuring the Oracle XML DB Example Servlet
It states:
To configure Oracle XML DB servlet, update the /xdbconfig.xml file by inserting the following XML element tree in the servlet-list element:
<servlet>
<servlet-name>TestServlet</servlet-name>
<servlet-language>Java</servlet-language>
<display-name>Oracle XML DB Test Servlet</display-name>
<servlet-class>test</servlet-class>
<servlet-schema>scott</servlet-schema>
</servlet>
and update the /xdbconfig.xml file by inserting the following XML element tree in the <servlet-mappings> element:
<servlet-mapping>
<servlet-pattern>/testserv</servlet-pattern>
<servlet-name>TestServlet</servlet-name>
</servlet-mapping>
You can edit the /xdbconfig.xml file with any WebDAV-capable text editor, or by using SQL function updateXML.
However it goes into no more detail regarding how this can be achieved using updateXML and further , manually editing the xdbconfig.xml file is cumbersome and can lead to a corrupt configuration.
This document shows how this is done in 11g using new procedures introduced to the dbms_xdb package, and also how to implement the same functionality in 10.2.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |