Author: slaws
Date: Sat Dec 1 04:09:55 2007
New Revision: 600099
URL: http://svn.apache.org/viewvc?rev=600099&view=rev
Log:
Start of a simple web app to run the fruits catalog as a counterpoint to the
ejb wrapper round the ejb veg app
Added:
incubator/tuscany/java/sca/tutorial/catalog-jse/ (with props)
incubator/tuscany/java/sca/tutorial/catalog-jse/WEB-INF/
incubator/tuscany/java/sca/tutorial/catalog-jse/WEB-INF/web.xml
incubator/tuscany/java/sca/tutorial/catalog-jse/calatolog-j2se.composite
incubator/tuscany/java/sca/tutorial/catalog-jse/catalog.jsp
incubator/tuscany/java/sca/tutorial/catalog-jse/pom.xml
Propchange: incubator/tuscany/java/sca/tutorial/catalog-jse/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Dec 1 04:09:55 2007
@@ -0,0 +1,3 @@
+.classpath
+.project
+.settings
Added: incubator/tuscany/java/sca/tutorial/catalog-jse/WEB-INF/web.xml
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/catalog-jse/WEB-INF/web.xml?rev=600099&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/catalog-jse/WEB-INF/web.xml (added)
+++ incubator/tuscany/java/sca/tutorial/catalog-jse/WEB-INF/web.xml Sat Dec 1
04:09:55 2007
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ * 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.
+-->
+
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
+Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+
+ <display-name>Fruit Catalog</display-name>
+
+ <welcome-file-list id="WelcomeFileList">
+ <welcome-file>catalog.jsp</welcome-file>
+ </welcome-file-list>
+
+</web-app>
Added: incubator/tuscany/java/sca/tutorial/catalog-jse/calatolog-j2se.composite
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/catalog-jse/calatolog-j2se.composite?rev=600099&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/catalog-jse/calatolog-j2se.composite
(added)
+++ incubator/tuscany/java/sca/tutorial/catalog-jse/calatolog-j2se.composite
Sat Dec 1 04:09:55 2007
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ targetNamespace="http://sample"
+ xmlns:sample="http://sample"
+ name="Calculator">
+
+ <component name="CalculatorServiceComponent">
+ <implementation.java class="calculator.CalculatorServiceImpl"/>
+ <reference name="addService" target="AddServiceComponent"></reference>
+ <reference name="subtractService"
target="SubtractServiceComponent"></reference>
+ <reference name="multiplyService"
target="MultiplyServiceComponent"></reference>
+ <reference name="divideService"
target="DivideServiceComponent"></reference>
+ </component>
+
+ <component name="AddServiceComponent">
+ <implementation.java class="calculator.AddServiceImpl"/>
+ </component>
+
+ <component name="SubtractServiceComponent">
+ <implementation.java class="calculator.SubtractServiceImpl"/>
+ </component>
+
+ <component name="MultiplyServiceComponent">
+ <implementation.java class="calculator.MultiplyServiceImpl"/>
+ </component>
+
+ <component name="DivideServiceComponent">
+ <implementation.java class="calculator.DivideServiceImpl"/>
+ </component>
+
+</composite>
Added: incubator/tuscany/java/sca/tutorial/catalog-jse/catalog.jsp
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/catalog-jse/catalog.jsp?rev=600099&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/catalog-jse/catalog.jsp (added)
+++ incubator/tuscany/java/sca/tutorial/catalog-jse/catalog.jsp Sat Dec 1
04:09:55 2007
@@ -0,0 +1,31 @@
+<%--
+ * 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.
+--%>
+
+
+<html>
+<head><title>Catalog</title></head>
+
+<body>
+<table>
+ <tr>
+ <th>Item</th>
+ </tr>
+</table>
+</body>
+</html>
Added: incubator/tuscany/java/sca/tutorial/catalog-jse/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/catalog-jse/pom.xml?rev=600099&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/catalog-jse/pom.xml (added)
+++ incubator/tuscany/java/sca/tutorial/catalog-jse/pom.xml Sat Dec 1 04:09:55
2007
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-tutorial</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <artifactId>tutorial-catalog-jse</artifactId>
+ <name>Apache Tuscany SCA Tutorial Catalog WAR COntribution</name>
+ <packaging>war</packaging>
+
+ <repositories>
+ <repository>
+ <id>apache.incubator</id>
+ <url>http://people.apache.org/repo/m2-incubating-repository</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-sca-api</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tutorial-assets</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ </dependency>
+
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.2</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ <sourceDirectory>${basedir}</sourceDirectory>
+ <resources>
+ <resource>
+ <directory>${basedir}</directory>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ <exclude>**/.*/**</exclude>
+ <exclude>pom.xml</exclude>
+ <exclude>build.xml</exclude>
+ <exclude>target/**</exclude>
+ </excludes>
+ </resource>
+ </resources>
+
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ <warSourceDirectory>.</warSourceDirectory>
+ <warSourceExcludes>target/**,.*/**</warSourceExcludes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-maven-ant-generator</artifactId>
+ <version>1.1-incubating-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]