Running the Webject Examples
Performing a typical installation of the JDBC adapter on the same host where Info*Engine is installed also installs certain example JSP and XML task files on your system.
The JSP files are installed in the following location:
<Windchill>\codebase\infoengine\jsp\examples\JDBCAdapter\examples
XML task files are installed under:
<Windchill>\tasks\infoengine\examples\JDBCAdapter\example-tasks
where <Windchill> is the Windchill Info*Engine installation directory.
Performing a JDBC adapter installation on a host different from the Windchill host saves the examples in the JDBC installation directory; you must manually copy the examples to an appropriate location under the Info*Engine installation directory as seen in the paths above.
To run the examples on your system, complete the following procedure:
1. Build the demo database by running the BuildDemo.jsp file. Use the following URL:
http://<hostname>/Windchill/infoengine/jsp/examples/JDBCAdapter/examples/BuildDemoDB.jsp
This file builds and populates the demo database that the examples run against.
* 
When using an SQL server database, use BuildDemoDBForSQLServer.jsp to build the demo database.
2. Replace the values of the INSTANCE, DBUSER and PASSWD webject parameters in the JSP files with values appropriate to your installation.
3. Run the JSP files in the examples directory using the following URL:
http://<hostname>/Windchill/infoengine/jsp/examples/JDBCAdapter/examples/<JDBC.jsp>
where <hostname> is the name of the system where Windchill is installed, and <JDBC.jsp> is the name of the JSP example file to be run.
* 
All the document examples with ForSQLServer.jsp in the file name are for SQL server databases only.
War dies hilfreich?