You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by va...@apache.org on 2009/10/29 18:42:32 UTC
svn commit: r831043 - in
/geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb: ./ src/
src/main/ src/main/java/ src/main/java/sample/ src/main/java/sample/ejb3/
src/main/resources/ src/main/resources/META-INF/
Author: vamsic007
Date: Thu Oct 29 17:42:31 2009
New Revision: 831043
URL: http://svn.apache.org/viewvc?rev=831043&view=rev
Log:
A simple helloworld EJB sample used in demonstrating rewiring of EJB references using SCA.
Added:
geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/
geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/pom.xml (with props)
geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/
geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/
geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/
geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/
geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/
geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldService.java (with props)
geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldServiceSimpleBean.java (with props)
geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/resources/
geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/resources/META-INF/
geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/resources/META-INF/ejb-jar.composite
geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/resources/META-INF/openejb-jar.xml (with props)
Added: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/pom.xml?rev=831043&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/pom.xml (added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/pom.xml Thu Oct 29 17:42:31 2009
@@ -0,0 +1,57 @@
+<?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-ejb</artifactId>
+ <name>Geronimo Plugins :: Helloworld Simple EJB Sample</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-sca-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-annotation_1.0_spec</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-ejb_3.0_spec</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ </build>
+</project>
Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldService.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldService.java?rev=831043&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldService.java (added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldService.java Thu Oct 29 17:42:31 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.ejb3;
+
+import javax.ejb.Remote;
+
+/**
+ * HelloworldService EJB interface.
+ */
+
+@Remote
+public interface HelloworldService {
+ String getGreetings(String name);
+}
Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldService.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldService.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldService.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldServiceSimpleBean.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldServiceSimpleBean.java?rev=831043&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldServiceSimpleBean.java (added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldServiceSimpleBean.java Thu Oct 29 17:42:31 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.ejb3;
+
+import javax.ejb.Stateless;
+
+/**
+ * HelloworldService EJB implementation
+ */
+@Stateless
+public class HelloworldServiceSimpleBean implements HelloworldService {
+ public String getGreetings(String name) {
+ System.out.println("HelloworldServiceSimpleBean.getGreetings: "+name);
+ return "HelloworldServiceSimpleBean says, Hello "+name;
+ }
+}
Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldServiceSimpleBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldServiceSimpleBean.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/java/sample/ejb3/HelloworldServiceSimpleBean.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/resources/META-INF/ejb-jar.composite
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/resources/META-INF/ejb-jar.composite?rev=831043&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/resources/META-INF/ejb-jar.composite (added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/resources/META-INF/ejb-jar.composite Thu Oct 29 17:42:31 2009
@@ -0,0 +1,37 @@
+<?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$ -->
+
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ targetNamespace="http://sample"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ name="helloworld-simple-ejb">
+
+ <component name="helloworldServiceSimpleBeanComponent">
+ <implementation.ejb ejb-link="HelloworldServiceSimpleBean"/>
+
+ <service name="HelloworldService">
+ <interface.java interface="sample.ejb3.HelloworldService"/>
+ <binding.sca/>
+ </service>
+ </component>
+</composite>
+
Added: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/resources/META-INF/openejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/resources/META-INF/openejb-jar.xml?rev=831043&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/resources/META-INF/openejb-jar.xml (added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/resources/META-INF/openejb-jar.xml Thu Oct 29 17:42:31 2009
@@ -0,0 +1,32 @@
+<?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.
+-->
+<ejb:openejb-jar xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns:ejb="http://openejb.apache.org/xml/ns/openejb-jar-2.2">
+ <dep:environment>
+ <dep:moduleId>
+ <dep:groupId>test</dep:groupId>
+ <dep:artifactId>helloworld-simple-ejb</dep:artifactId>
+ <dep:version>1.0</dep:version>
+ <dep:type>jar</dep:type>
+ </dep:moduleId>
+ <dep:dependencies/>
+ <dep:hidden-classes/>
+ <dep:non-overridable-classes/>
+ </dep:environment>
+</ejb:openejb-jar>
Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-simple-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml