To add a new JDNI data source resource, you must also make an entry in web.xml.
There are several instances of web.xml in the Unwired Accelerator installation. The initial instance is located in SYBASE\tomcat\conf as part of the original Unwired Accelerator installation. Each subsequent instance of web.xml is created and configured when a Web application is deployed; for example, when Mobile Web Studio is deployed, SYBASE\tomcat\webapps\ onepage\WEB-INF\web.xml is created and configured. Each deployed Web application has its own web.xml file in that application’s associated WEB-INF directory.
Here is an example for PortalDB:
<resource-ref> <description>PortalDatabase</description> <res-ref-name>jdbc/portaldb</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref>
All configured web.xml entries
and resources are placed in the java:comp/env portion
of the JNDI namespace.