tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adrianocrest...@apache.org
Subject svn commit: r553092 - in /incubator/tuscany/branches/das-java-beta1: distribution/binary/src/main/assembly/das.xml samples/Readme.htm samples/customer/build.xml samples/customer/readme.htm
Date Wed, 04 Jul 2007 06:16:19 GMT
Author: adrianocrestani
Date: Tue Jul  3 23:16:18 2007
New Revision: 553092

URL: http://svn.apache.org/viewvc?view=rev&rev=553092
Log:
merging trunk to branch

Added:
    incubator/tuscany/branches/das-java-beta1/samples/Readme.htm
    incubator/tuscany/branches/das-java-beta1/samples/customer/build.xml
Modified:
    incubator/tuscany/branches/das-java-beta1/distribution/binary/src/main/assembly/das.xml
    incubator/tuscany/branches/das-java-beta1/samples/customer/readme.htm

Modified: incubator/tuscany/branches/das-java-beta1/distribution/binary/src/main/assembly/das.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/das-java-beta1/distribution/binary/src/main/assembly/das.xml?view=diff&rev=553092&r1=553091&r2=553092
==============================================================================
--- incubator/tuscany/branches/das-java-beta1/distribution/binary/src/main/assembly/das.xml
(original)
+++ incubator/tuscany/branches/das-java-beta1/distribution/binary/src/main/assembly/das.xml
Tue Jul  3 23:16:18 2007
@@ -89,6 +89,11 @@
                <outputDirectory>tuscany-das-${das.version}/samples/customer</outputDirectory>
                <fileMode>644</fileMode>
             </file>
+            <file>
+               <source>../../samples/customer/build.xml</source>
+               <outputDirectory>tuscany-das-${das.version}/samples/customer</outputDirectory>
+               <fileMode>644</fileMode>
+            </file>
         </files>
 
 

Added: incubator/tuscany/branches/das-java-beta1/samples/Readme.htm
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/das-java-beta1/samples/Readme.htm?view=auto&rev=553092
==============================================================================
--- incubator/tuscany/branches/das-java-beta1/samples/Readme.htm (added)
+++ incubator/tuscany/branches/das-java-beta1/samples/Readme.htm Tue Jul  3 23:16:18 2007
@@ -0,0 +1,82 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML>
+<HEAD>
+	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
+	<TITLE>Tuscany RDB DAS Sample</TITLE>
+	<META NAME="GENERATOR" CONTENT="BrOffice.org 2.0  (Win32)">
+	<META NAME="CREATED" CONTENT="20070703;53381">
+	<META NAME="CHANGEDBY" CONTENT="a a">
+	<META NAME="CHANGED" CONTENT="20070703;190294">
+<!-- <pre><a name="header-text">Licensed to the Apache Software Foundation
(ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+&quot;License&quot;); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+&quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.   </a></pre>
+
+-->
+
+</HEAD>
+<BODY LANG="en-US" DIR="LTR">
+<H1 LANG="pt-BR">DAS Samples</H1>
+<P LANG="pt-BR"><FONT FACE="Times New Roman, serif">The DAS Java
+Samples demonstrates the DAS features and how to get started with
+them. Below a list of available samples:</FONT></P>
+<TABLE WIDTH=100% BORDER=1 CELLPADDING=4 CELLSPACING=3>
+	<COL WIDTH=42*>
+	<COL WIDTH=214*>
+	<TR VALIGN=TOP>
+		<TD WIDTH=17%>
+			<H1 LANG="pt-BR" ALIGN=CENTER STYLE="margin-top: 0cm"><FONT FACE="Times New Roman,
serif"><FONT SIZE=3>Companyweb</FONT></FONT></H1>
+		</TD>
+		<TD WIDTH=83%>
+			<P LANG="pt-BR"><FONT FACE="Times New Roman, serif"><FONT SIZE=3>This
+			stand-alone sample demonstrates the SDO RDB Data Access Service in
+			the context of a simple web application. </FONT></FONT>
+			</P>
+		</TD>
+	</TR>
+	<TR VALIGN=TOP>
+		<TD WIDTH=17%>
+			<H1 LANG="pt-BR" ALIGN=CENTER STYLE="margin-top: 0cm"><FONT FACE="Times New Roman,
serif"><FONT SIZE=3>Customer
+			</FONT></FONT>
+			</H1>
+		</TD>
+		<TD WIDTH=83%>
+			<P LANG="pt-BR"><FONT FACE="Times New Roman, serif"><FONT SIZE=3>This
+			stand-alone sample demonstrates the RDB Data Access Service in the
+			context of a simple java application. </FONT></FONT>
+			</P>
+		</TD>
+	</TR>
+	<TR VALIGN=TOP>
+		<TD WIDTH=17%>
+			<P LANG="pt-BR" ALIGN=CENTER><FONT FACE="Times New Roman, serif"><FONT
SIZE=3><B>Ajax</B>
+			<B>DAS Web</B> </FONT></FONT>
+			</P>
+		</TD>
+		<TD WIDTH=83%>
+			<P LANG="pt-BR"><FONT FACE="Times New Roman, serif"><FONT SIZE=3><FONT
SIZE=2 STYLE="font-size: 11pt"><FONT FACE="Arial">This
+			web sample demonstrates SDO RDB Data Access Service using Ajax</FONT></FONT>
+			<FONT SIZE=2 STYLE="font-size: 11pt"><FONT FACE="Arial">for the
+			generic framework. &nbsp;</FONT></FONT> </FONT></FONT>
+			</P>
+		</TD>
+	</TR>
+</TABLE>
+<P LANG="pt-BR"><BR><BR>
+</P>
+<P LANG="pt-BR"><BR><BR>
+</P>
+</BODY>
+</HTML>
\ No newline at end of file

Added: incubator/tuscany/branches/das-java-beta1/samples/customer/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/das-java-beta1/samples/customer/build.xml?view=auto&rev=553092
==============================================================================
--- incubator/tuscany/branches/das-java-beta1/samples/customer/build.xml (added)
+++ incubator/tuscany/branches/das-java-beta1/samples/customer/build.xml Tue Jul  3 23:16:18
2007
@@ -0,0 +1,38 @@
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<project name="customer" default="run">
+    <property name="test.class" value="org.apache.tuscany.samples.das.customer.CustomerClient"
/>
+	<property name="test.jar"   value="sample-customer.jar" />
+	
+	
+    <target name="run">
+        <java classname="${test.class}"
+              fork="true">
+	    <classpath>
+	      <pathelement path="${classpath}"/>
+	      <fileset dir="../../lib">
+		<include name="**/*.jar"/>
+	      </fileset>
+	      <pathelement location="derby-10.1.2.1.jar"/>
+              <pathelement path="${test.jar}"/>
+	    </classpath>        
+        </java>    	
+    </target>	
+	
+</project>

Modified: incubator/tuscany/branches/das-java-beta1/samples/customer/readme.htm
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/das-java-beta1/samples/customer/readme.htm?view=diff&rev=553092&r1=553091&r2=553092
==============================================================================
--- incubator/tuscany/branches/das-java-beta1/samples/customer/readme.htm (original)
+++ incubator/tuscany/branches/das-java-beta1/samples/customer/readme.htm Tue Jul  3 23:16:18
2007
@@ -1,14 +1,13 @@
-<html xmlns:v="urn:schemas-microsoft-com:vml"
-xmlns:o="urn:schemas-microsoft-com:office:office"
-xmlns:w="urn:schemas-microsoft-com:office:word"
-xmlns:st1="urn:schemas-microsoft-com:office:smarttags"
-xmlns="http://www.w3.org/TR/REC-html40">
-
-<head>
-<title>Tuscany RDB DAS Sample</title>
-
-<!--
-<pre><a name="header-text">Licensed to the Apache Software Foundation (ASF) under
one
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML>
+<HEAD>
+	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
+	<TITLE>Tuscany RDB DAS Sample</TITLE>
+	<META NAME="GENERATOR" CONTENT="BrOffice.org 2.0  (Win32)">
+	<META NAME="CREATED" CONTENT="20070704;1002817">
+	<META NAME="CHANGEDBY" CONTENT="a a">
+	<META NAME="CHANGED" CONTENT="20070704;2123396">
+	<!-- <pre><a name="header-text">Licensed to the Apache Software Foundation
(ASF) under one
 or more contributor license agreements.  See the NOTICE file
 distributed with this work for additional information
 regarding copyright ownership.  The ASF licenses this file
@@ -26,13 +25,73 @@
 under the License.   </a></pre>
 
 -->
-
-<h1>RDB DAS Customer Sample</h1>
-
-<p>This stand-alone sample demonstrates the RDB Data Access Service in the context
of a simple java application.</p>
-
-<p>So, this simple application covers all CRUD operations. The sample runs on Eclipse
or from the command line, and employs a Derby database accessed via a DriverManager.</p>
-
-</body>
-
-</html>
+</HEAD>
+<BODY LANG="en-US" DIR="LTR">
+<H1 LANG="pt-BR">RDB DAS Customer Sample</H1>
+<H2 LANG="pt-BR">Introduction</H2>
+<P LANG="pt-BR">This stand-alone sample demonstrates the RDB Data
+Access Service in the context of a simple java application.</P>
+<H2 LANG="pt-BR">Building and Running</H2>
+<UL>
+	<LI><P LANG="pt-BR">Apache Ant latest version installed.</P>
+	<UL>
+		<UL>
+			<LI><P LANG="pt-BR">Download Apache Ant latest version on and
+			extract into folder &lt;apache_ant_folder&gt;. You can find it
+			here: <A HREF="http://ant.apache.org/bindownload.cgi">http://ant.apache.org/bindownload.cgi</A>.</P>
+			<LI><P LANG="pt-BR">Add &lt;apache_ant_folder&gt;/bin directory to
+			your OS path variable.</P>
+		</UL>
+	</UL>
+	<LI><P LANG="pt-BR">On console change the actual directory to
+	&lt;tuscany_das_java_distribution&gt;/samples/customer/ and execute
+	ant application:</P>
+	<UL>
+		<P LANG="pt-BR">&lt;tuscany_das_java_distribution&gt;/samples/customer/
+		&gt; ant</P>
+	</UL>
+</UL>
+<P LANG="pt-BR">The sample will run and output the following:</P>
+<P LANG="pt-BR" STYLE="margin-left: 2cm; margin-bottom: 0cm"><FONT SIZE=2>Buildfile:
+build.xml</FONT> <BR><BR><FONT SIZE=2>run:</FONT><BR><FONT
SIZE=2>[java]
+connection info from config***************</FONT><BR><FONT SIZE=2>[java]
+dbName:jdbc:derby:target/dastest; create = true user:
+password:</FONT><BR><FONT SIZE=2>[java]
+******************************************</FONT><BR><FONT SIZE=2>[java]
+Setting up for derby run!</FONT><BR><FONT SIZE=2>[java] Dropping
+tables</FONT><BR><FONT SIZE=2>[java] Dropping procedures</FONT><BR><FONT
SIZE=2>[java]
+Creating tables</FONT><BR><FONT SIZE=2>[java] Creating
+procedures</FONT><BR><FONT SIZE=2>[java] Inserting data in
+tables</FONT><BR><FONT SIZE=2>[java] Database setup complete!</FONT><BR><FONT
SIZE=2>[java]
+log4j:WARN No appenders could be found for logger
+(org.apache.tuscan</FONT><BR><FONT SIZE=2>y.das.rdb.impl.Parameters).</FONT><BR><FONT
SIZE=2>[java]
+log4j:WARN Please initialize the log4j system properly.</FONT><BR><FONT SIZE=2>[java]
+Result:select all customers</FONT><BR><FONT SIZE=2>[java] ID:1
+LASTNAME:John ADDRESS:USA</FONT><BR><FONT SIZE=2>[java] ID:2
+LASTNAME:Amita ADDRESS:INDIA</FONT><BR><FONT SIZE=2>[java] ID:3
+LASTNAME:Patrick ADDRESS:UK</FONT><BR><FONT SIZE=2>[java] ID:4
+LASTNAME:Jane ADDRESS:UN</FONT><BR><FONT SIZE=2>[java] Result:insert
+new customer</FONT><BR><FONT SIZE=2>[java] ID:1 LASTNAME:John
+ADDRESS:USA</FONT><BR><FONT SIZE=2>[java] ID:2 LASTNAME:Amita
+ADDRESS:INDIA</FONT><BR><FONT SIZE=2>[java] ID:3 LASTNAME:Patrick
+ADDRESS:UK</FONT><BR><FONT SIZE=2>[java] ID:4 LASTNAME:Jane
+ADDRESS:UN</FONT><BR><FONT SIZE=2>[java] ID:5 LASTNAME:Jenny
+ADDRESS:USA</FONT><BR><FONT SIZE=2>[java] Result:update first
+customer</FONT><BR><FONT SIZE=2>[java] ID:1 LASTNAME:BlueBerry
+ADDRESS:USA</FONT><BR><FONT SIZE=2>[java] ID:2 LASTNAME:Amita
+ADDRESS:INDIA</FONT><BR><FONT SIZE=2>[java] ID:3 LASTNAME:Patrick
+ADDRESS:UK</FONT><BR><FONT SIZE=2>[java] ID:4 LASTNAME:Jane
+ADDRESS:UN</FONT><BR><FONT SIZE=2>[java] ID:5 LASTNAME:Jenny
+ADDRESS:USA</FONT><BR><FONT SIZE=2>[java] Result:delete last
+customer</FONT><BR><FONT SIZE=2>[java] Deleting customer named:
+Jenny</FONT><BR><FONT SIZE=2>[java] ID:1 LASTNAME:BlueBerry
+ADDRESS:USA</FONT><BR><FONT SIZE=2>[java] ID:2 LASTNAME:Amita
+ADDRESS:INDIA</FONT><BR><FONT SIZE=2>[java] ID:3 LASTNAME:Patrick
+ADDRESS:UK</FONT><BR><FONT SIZE=2>[java] ID:4 LASTNAME:Jane
+ADDRESS:UN</FONT><BR><BR><FONT SIZE=2>BUILD SUCCESSFUL</FONT><BR><FONT
SIZE=2>Total
+time: 29 seconds</FONT></P>
+
+<P LANG="pt-BR" STYLE="margin-bottom: 0cm"><FONT SIZE=3>Observation:
+The build.xml ant file only works on DAS Java binary distribution.</FONT></P>
+</BODY>
+</HTML>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message