Add a
database resource entry to the Ebase web application web.xml file
The web.xml
defines the requirements of the Ebase web application to the application
server. It is normally located in one of the following directories depending on
your J2EE application server:
Jboss/Tomcat ...ufs/UfsServer/tomcat/webapps/ufs/WEB-INF
WebSphere ...WebSphere/AppServer/installedApps/UFS.ear/ufs.war/WEB-INF
Add a new database resource
entry to the bottom of this file as follows:
<resource-ref
id="ResourceRef_new">
<description>my new db
source</description>
<res-ref-name>jdbc/NEWDATASOURCENAME</res-ref-name>
<res-type>javax.sql.XADataSource</res-type>
<res-auth>CONTAINER</res-auth>
</resource-ref>
resource-ref id is a name of your
choosing and may contain any "quoted" value, but must be unique
within resource refs
description may contain any
value
res-ref-name must contain jdbc/
followed by any value which must be unique within resource ref names. This name
(minus the jdbc/) is used to refer to the database from the Ebase database
element (e.g. NEWDATASOURCENAME in the example above)
res-type must contain javax.sql.XADataSource
res-auth must contain CONTAINER
The application server should be re-started to
implement this change.