From bdd0a41aed7edf21ec2a65cfa17a86af2ef8c48a Mon Sep 17 00:00:00 2001 From: dims Date: Tue, 17 Jun 2008 00:23:01 +0000 Subject: Move Tuscany from Incubator to top level. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@668359 13f79535-47bb-0310-9956-ffa450edef68 --- .../samples/customer/readme.htm | 97 ++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 tags/java/das/1.0-incubating-beta1/samples/customer/readme.htm (limited to 'tags/java/das/1.0-incubating-beta1/samples/customer/readme.htm') diff --git a/tags/java/das/1.0-incubating-beta1/samples/customer/readme.htm b/tags/java/das/1.0-incubating-beta1/samples/customer/readme.htm new file mode 100644 index 0000000000..3e7fbe7752 --- /dev/null +++ b/tags/java/das/1.0-incubating-beta1/samples/customer/readme.htm @@ -0,0 +1,97 @@ + + + + + Tuscany RDB DAS Sample + + + + + + + +

RDB DAS Customer Sample

+

Introduction

+

This stand-alone sample demonstrates the RDB Data +Access Service in the context of a simple java application.

+

Building and Running

+ +

The sample will run and output the following:

+

Buildfile: +build.xml

run:
[java] +connection info from config***************
[java] +dbName:jdbc:derby:target/dastest; create = true user: +password:
[java] +******************************************
[java] +Setting up for derby run!
[java] Dropping +tables
[java] Dropping procedures
[java] +Creating tables
[java] Creating +procedures
[java] Inserting data in +tables
[java] Database setup complete!
[java] +log4j:WARN No appenders could be found for logger +(org.apache.tuscan
y.das.rdb.impl.Parameters).
[java] +log4j:WARN Please initialize the log4j system properly.
[java] +Result:select all customers
[java] ID:1 +LASTNAME:John ADDRESS:USA
[java] ID:2 +LASTNAME:Amita ADDRESS:INDIA
[java] ID:3 +LASTNAME:Patrick ADDRESS:UK
[java] ID:4 +LASTNAME:Jane ADDRESS:UN
[java] Result:insert +new customer
[java] ID:1 LASTNAME:John +ADDRESS:USA
[java] ID:2 LASTNAME:Amita +ADDRESS:INDIA
[java] ID:3 LASTNAME:Patrick +ADDRESS:UK
[java] ID:4 LASTNAME:Jane +ADDRESS:UN
[java] ID:5 LASTNAME:Jenny +ADDRESS:USA
[java] Result:update first +customer
[java] ID:1 LASTNAME:BlueBerry +ADDRESS:USA
[java] ID:2 LASTNAME:Amita +ADDRESS:INDIA
[java] ID:3 LASTNAME:Patrick +ADDRESS:UK
[java] ID:4 LASTNAME:Jane +ADDRESS:UN
[java] ID:5 LASTNAME:Jenny +ADDRESS:USA
[java] Result:delete last +customer
[java] Deleting customer named: +Jenny
[java] ID:1 LASTNAME:BlueBerry +ADDRESS:USA
[java] ID:2 LASTNAME:Amita +ADDRESS:INDIA
[java] ID:3 LASTNAME:Patrick +ADDRESS:UK
[java] ID:4 LASTNAME:Jane +ADDRESS:UN

BUILD SUCCESSFUL
Total +time: 29 seconds

+ +

Observation: +The build.xml ant file only works on DAS Java binary distribution.

+ + \ No newline at end of file -- cgit v1.2.3