summaryrefslogtreecommitdiffstats
path: root/java/sca/samples/customer-dojo
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2008-09-23 21:25:31 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2008-09-23 21:25:31 +0000
commit8192f9af3da0da5fad5f4db1550913527de00837 (patch)
treee8ee6fe0a004d5f82e6d52f9a5f2f13263e5572e /java/sca/samples/customer-dojo
parentf70779f22413d65ac296f05b57704c2e97a3fb34 (diff)
Generating sql database on a different folder to avoid conflicting errors during eclipse project file generation
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@698358 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/samples/customer-dojo')
-rw-r--r--java/sca/samples/customer-dojo/pom.xml6
-rw-r--r--java/sca/samples/customer-dojo/src/main/java/launch/Launch.java3
-rw-r--r--java/sca/samples/customer-dojo/src/main/resources/META-INF/persistence.xml2
3 files changed, 6 insertions, 5 deletions
diff --git a/java/sca/samples/customer-dojo/pom.xml b/java/sca/samples/customer-dojo/pom.xml
index 950b580c87..1e4305d9ce 100644
--- a/java/sca/samples/customer-dojo/pom.xml
+++ b/java/sca/samples/customer-dojo/pom.xml
@@ -103,7 +103,7 @@
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
- <version>10.1.2.1</version>
+ <version>10.3.1.4</version>
</dependency>
<dependency>
@@ -214,7 +214,7 @@
</goals>
<configuration>
<driver>org.apache.derby.jdbc.EmbeddedDriver</driver>
- <url>jdbc:derby:${pom.basedir}/target/classes/customer;create=true</url>
+ <url>jdbc:derby:${pom.basedir}/target/classes/customer-db;create=true</url>
<autocommit>true</autocommit>
<onError>continue</onError>
<onConnectionError>skip</onConnectionError>
@@ -234,7 +234,7 @@
</goals>
<configuration>
<driver>org.apache.derby.jdbc.EmbeddedDriver</driver>
- <url>jdbc:derby:${pom.basedir}/target/classes/customer;shutdown=true</url>
+ <url>jdbc:derby:${pom.basedir}/target/classes/customer-db;shutdown=true</url>
<skipOnConnectionError>true</skipOnConnectionError>
</configuration>
</execution>
diff --git a/java/sca/samples/customer-dojo/src/main/java/launch/Launch.java b/java/sca/samples/customer-dojo/src/main/java/launch/Launch.java
index d7f88b8dd4..a51ab605bc 100644
--- a/java/sca/samples/customer-dojo/src/main/java/launch/Launch.java
+++ b/java/sca/samples/customer-dojo/src/main/java/launch/Launch.java
@@ -25,7 +25,8 @@ public class Launch {
public static void main(String[] args) throws Exception {
System.out.println("Starting ...");
SCADomain scaDomain = SCADomain.newInstance("customer.composite");
- System.out.println("store.composite ready for big business !!!");
+ System.out.println("customer.composite ready for big business !!!");
+ System.out.println("url : http://localhost:8080/customer.html");
System.in.read();
System.out.println("Stopping ...");
scaDomain.close();
diff --git a/java/sca/samples/customer-dojo/src/main/resources/META-INF/persistence.xml b/java/sca/samples/customer-dojo/src/main/resources/META-INF/persistence.xml
index 7073c8daf7..5add897279 100644
--- a/java/sca/samples/customer-dojo/src/main/resources/META-INF/persistence.xml
+++ b/java/sca/samples/customer-dojo/src/main/resources/META-INF/persistence.xml
@@ -29,7 +29,7 @@
<properties>
<property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"/>
- <property name="openjpa.ConnectionURL" value="jdbc:derby:target/classes/customer"/>
+ <property name="openjpa.ConnectionURL" value="jdbc:derby:target/classes/customer-db"/>
<property name="openjpa.ConnectionUserName" value=""/>
<property name="openjpa.ConnectionPassword" value=""/>