This page is no longer maintained and may contain obsolete information.
While CAST supports the use of direct connections to the server hosting the CAST Dashboard Service using the appropriate section in the web.xml file (see Deploy the CAST web applications), it is also possible to use a Java DataSource instead. CAST supports both Apache Tomcat and BEA Weblogic DataSources.
In addition, you can also declare your CAST Analysis Service as a DataSource(for use with the CAST Discovery Portal) by first using the declaration method below (do not add the CAST Analysis Service DataSource to the web.xml file however) and then configuring it using the Site Lists option in the CAST Engineering Dashboard/CAST Discovery Portal as described in Deploy the CAST web applications.
The process is as follows:
- Create and declare the DataSource in your application server
- Edit the %CATALINA_HOME%\webapps\CAST-CED\WEB-INF\web.xml file and define the DataSource
Create and declare the DataSource
You first need to create and declare your DataSource in the Apache Tomcat configuration settings. This can be done in the following file:
Please refer to your application server for more information about declaring DataSources.
Edit the CAST web.xml file
Before you can use the CAST Engineering Dashboard or the CAST Discovery Portal, you need to configure the connection properties to use your DataSource. This can be done in the following file:
Then navigate to the Apache Tomcat DataSource section:
Enter the details of your DataSource, the name of the database/schema hosting your CAST Dashboard Service (or CAST Analysis Service if appropriate) and uncomment the entire section:
Following any changes you make, save the web.xml file and then restart your application server so that the changes are taken into account.