geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r831040 - in /geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service: ./ src/ src/main/ src/main/java/ src/main/java/sample/ src/main/resources/ src/main/resources/META-INF/ src/main/resources/META-INF/sca-deployables/
Date Thu, 29 Oct 2009 17:28:55 GMT
Author: vamsic007
Date: Thu Oct 29 17:28:54 2009
New Revision: 831040

URL: http://svn.apache.org/viewvc?rev=831040&view=rev
Log:
A simple helloworld SCA sample used to demonstrate rewiring of EJB references using SCA.

Added:
    geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/
    geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/pom.xml   (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/
    geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/
    geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/
    geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/
    geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldService.java
  (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldServiceImpl.java
  (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/resources/
    geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/resources/META-INF/
    geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/resources/META-INF/sca-deployables/
    geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/resources/META-INF/sca-deployables/helloworld-simple-service.composite

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/pom.xml?rev=831040&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/pom.xml (added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/pom.xml Thu Oct 29 17:28:54
2009
@@ -0,0 +1,47 @@
+<?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.    
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.geronimo.plugins</groupId>
+        <artifactId>tuscany-samples</artifactId>
+        <version>1.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>helloworld-simple-service</artifactId>
+    <name>Geronimo Plugins :: Helloworld Simple Service</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-sca-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+
+    </dependencies>
+
+    <!--build>
+       <finalName>${artifactId}</finalName>
+    </build-->
+</project>

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldService.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldService.java?rev=831040&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldService.java
(added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldService.java
Thu Oct 29 17:28:54 2009
@@ -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.    
+ */
+
+package sample;
+
+import org.osoa.sca.annotations.Remotable;
+
+/**
+ * HelloworldService SCA interface.
+ */
+
+@Remotable
+public interface HelloworldService {
+	String getGreetings(String name);
+}

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldService.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldService.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldServiceImpl.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldServiceImpl.java?rev=831040&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldServiceImpl.java
(added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldServiceImpl.java
Thu Oct 29 17:28:54 2009
@@ -0,0 +1,37 @@
+/*
+ * 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.    
+ */
+
+package sample;
+
+import org.osoa.sca.annotations.ComponentName;
+import org.osoa.sca.annotations.Service;
+
+@Service(HelloworldService.class)
+public class HelloworldServiceImpl implements HelloworldService {
+    
+    protected String greetingPrefix = "Hello";
+    
+    @ComponentName
+    protected String componentName;
+    
+    public String getGreetings(String name) {
+        System.out.println(componentName+": HelloworldServiceImpl.getGreetings: " + name);
+        return greetingPrefix + " " + name;
+    }
+}

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldServiceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldServiceImpl.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/java/sample/HelloworldServiceImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/resources/META-INF/sca-deployables/helloworld-simple-service.composite
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/resources/META-INF/sca-deployables/helloworld-simple-service.composite?rev=831040&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/resources/META-INF/sca-deployables/helloworld-simple-service.composite
(added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-simple-service/src/main/resources/META-INF/sca-deployables/helloworld-simple-service.composite
Thu Oct 29 17:28:54 2009
@@ -0,0 +1,27 @@
+<?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"
+           name="helloworld-simple-service">
+
+    <component name="HelloworldServiceComponent">
+        <implementation.java class="sample.HelloworldServiceImpl"/>
+    </component>
+</composite>



Mime
View raw message