Dear Wiki user, You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.
The following page has been changed by willianmaja: http://wiki.apache.org/ws/Tuscany/TuscanyJava/DAS_Java_Overview/RDBDAS_HOWTO_HelloDASApp ------------------------------------------------------------------------------ - This Tutorial purpose is to provide a simple "how to" and give a step-by-step to build a simple aplication using DAS/SDO features from Tuscany project. Here you'll build our "CompanyWeb Sample Web Application". This sample uses Mysql and Tomcat. A. Initial Setup: - 1- Install Tomcat{latest version} and Mysql{latest version}. + 1- Install Tomcat{latest version} and Mysql{latest version}. - 2- Download dependencies and libraries + 2- Download dependencies and libraries - 3- create companyweb directory in {Tomcat root}/webapps/. EX: {Tomcat root}/webapps/companyweb + 3- create companyweb directory in {Tomcat root}/webapps/. EX: {Tomcat root}/webapps/companyweb - 4- Create the directory {Tomcat root}/webapps/companyweb/WEB-INF/lib and put the libraries in it. Otherwise you can put them in {Tomcat root}/common/lib + 4- Create the directory {Tomcat root}/webapps/companyweb/WEB-INF/lib and put the libraries in it. Otherwise you can put them in {Tomcat root}/common/lib - 5- The required libraries are: + 5- The required libraries are: - i) common-{latest version}.jar + i) common-{latest version}.jar - ii) ecore-{latest version}.jar + ii) ecore-{latest version}.jar - iii) ecore-change-{latest version}.jar + iii) ecore-change-{latest version}.jar - iv) ecore-xmi-{lateste version}.ar + iv) ecore-xmi-{lateste version}.ar - v) log4j-{latest version}.jar + v) log4j-{latest version}.jar - vi) sdo-api-xxx.jar + vi) sdo-api-xxx.jar - vii) tuscany-das-rdb-xxx.jar + vii) tuscany-das-rdb-xxx.jar - viii) tuscany-sdo-xxx.jar + viii) tuscany-sdo-xxx.jar - ix) xsd-{latest version}.jar + ix) xsd-{latest version}.jar - x) mysql-connector-java-{latest version}.jar + x) mysql-connector-java-{latest version}.jar B. Creating CompanyWeb Database - 1- Run the following commands in the Mysql Command Shell + 1- Run the following commands in the Mysql Command Shell - create database companyweb; // Creates the CompanyWeb database + create database companyweb; // Creates the CompanyWeb database - use companyweb; // Set the shell to work with companyweb database + use companyweb; // Set the shell to work with companyweb database - 2- Create a companydatabase.sql and inser + 2- Create a companydatabase.sql and inser - source {path}/companyweb.sql // Executes the script to create tables, constraints, etc. + source {path}/companyweb.sql // Executes the script to create tables, constraints, etc. - C. Creating XML configuration file + C.Creating XML configuration file - 1- Create the file CompanyConfig.xml in the directory {Tomcat root}/webapps/companyweb/WEB-INF/classes + 1- Create the file CompanyConfig.xml in the directory {Tomcat root}/webapps/companyweb/WEB-INF/classes - 2- Edit it and write the following code: + 2- Edit it and write the following code: <?xml version="1.0" encoding="ASCII"?> <Config xsi:noNamespaceSchemaLocation="http:///org.apache.tuscany.das.rdb/config.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> @@ -60, +59 @@ </Config> - 3- Save the file. + 3- Save the file. D. Creating the class wich manages the DAS/SDO features - 1- Create the file CompanyCLient.java in the directory {Tomcat root}/webapps/companyweb/WEB-INF/classes/org/apache/tuscany/samples/das/companyweb + 1- Create the file CompanyCLient.java in the directory {Tomcat root}/webapps/companyweb/WEB-INF/classes/org/apache/tuscany/samples/das/companyweb - 2- Write the following code in the file : + 2- Write the following code in the file : --HOW to make the jsp. http://people.apache.org/~kelvingoodson/das_java/RC4b/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
