You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ga...@apache.org on 2007/10/18 23:24:32 UTC

svn commit: r586143 - in /geronimo/samples/trunk/samples/mytime: ./ mytime-ear/ mytime-ear/src/ mytime-ear/src/main/ mytime-ear/src/main/resources/ mytime-ear/src/main/resources/META-INF/ mytime-ejb/ mytime-ejb/src/ mytime-ejb/src/main/ mytime-ejb/src/...

Author: gawor
Date: Thu Oct 18 14:24:30 2007
New Revision: 586143

URL: http://svn.apache.org/viewvc?rev=586143&view=rev
Log:
imported mytime samples into svn

Added:
    geronimo/samples/trunk/samples/mytime/
    geronimo/samples/trunk/samples/mytime/mytime-ear/
    geronimo/samples/trunk/samples/mytime/mytime-ear/pom.xml   (with props)
    geronimo/samples/trunk/samples/mytime/mytime-ear/src/
    geronimo/samples/trunk/samples/mytime/mytime-ear/src/main/
    geronimo/samples/trunk/samples/mytime/mytime-ear/src/main/resources/
    geronimo/samples/trunk/samples/mytime/mytime-ear/src/main/resources/META-INF/
    geronimo/samples/trunk/samples/mytime/mytime-ear/src/main/resources/META-INF/geronimo-application.xml   (with props)
    geronimo/samples/trunk/samples/mytime/mytime-ejb/
    geronimo/samples/trunk/samples/mytime/mytime-ejb/pom.xml   (with props)
    geronimo/samples/trunk/samples/mytime/mytime-ejb/src/
    geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/
    geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/
    geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/
    geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/
    geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/geronimo/
    geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/geronimo/samples/
    geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/geronimo/samples/mytimepak/
    geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/geronimo/samples/mytimepak/MyTimeBean.java   (with props)
    geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/geronimo/samples/mytimepak/MyTimeLocal.java   (with props)
    geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/resources/
    geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/resources/META-INF/
    geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/resources/META-INF/openejb-jar.xml   (with props)
    geronimo/samples/trunk/samples/mytime/mytime-war/
    geronimo/samples/trunk/samples/mytime/mytime-war/pom.xml   (with props)
    geronimo/samples/trunk/samples/mytime/mytime-war/src/
    geronimo/samples/trunk/samples/mytime/mytime-war/src/main/
    geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/
    geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/WEB-INF/
    geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/WEB-INF/geronimo-web.xml   (with props)
    geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/WEB-INF/web.xml   (with props)
    geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/header.html   (with props)
    geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/index.html   (with props)
    geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/index.jsp   (with props)
    geronimo/samples/trunk/samples/mytime/pom.xml   (with props)

Added: geronimo/samples/trunk/samples/mytime/mytime-ear/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/mytime/mytime-ear/pom.xml?rev=586143&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/mytime/mytime-ear/pom.xml (added)
+++ geronimo/samples/trunk/samples/mytime/mytime-ear/pom.xml Thu Oct 18 14:24:30 2007
@@ -0,0 +1,104 @@
+<?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: 550875 $ $Date: 2007-06-26 13:40:09 -0400 (Tue, 26 Jun 2007) $ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>mytime</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>mytime-ear</artifactId>
+    <name>Geronimo Samples :: mytime :: EAR</name>
+    <packaging>ear</packaging>
+
+    <description>Geronimo Samples. EAR Module</description>
+
+    <dependencies>
+      <dependency>
+            <groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>mytime-war</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <type>war</type>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>mytime-ejb</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <type>ejb</type>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-ear-plugin</artifactId>
+                <configuration>
+                    <displayName>Geronimo Sample EAR for mytime</displayName>
+                    <description>Geronimo Sample EAR for mytime</description>
+                    <version>5</version>
+                    <modules>
+                      <ejbModule>
+                            <groupId>org.apache.geronimo.samples</groupId>
+                            <artifactId>mytime-ejb</artifactId>
+                            <bundleFileName>mytime-ejb-2.0-SNAPSHOT.jar</bundleFileName>
+                        </ejbModule>
+
+                        <webModule>
+                            <groupId>org.apache.geronimo.samples</groupId>
+                            <artifactId>mytime-war</artifactId>
+                            <contextRoot>/mytime</contextRoot>
+                            <bundleFileName>mytime-war-2.0-SNAPSHOT.war</bundleFileName>
+                        </webModule>
+                    </modules>
+                </configuration>
+            </plugin>
+
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>install</phase>
+                        <id>copy-parent-target</id>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <echo>Copying ${pom.build.finalName}.ear file to parent</echo>
+                                <copy file ="${project.build.directory}/${pom.artifactId}-${pom.version}.ear" todir="${pom.basedir}/.." failonerror="false" overwrite="true" />
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
+

Propchange: geronimo/samples/trunk/samples/mytime/mytime-ear/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/mytime/mytime-ear/src/main/resources/META-INF/geronimo-application.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/mytime/mytime-ear/src/main/resources/META-INF/geronimo-application.xml?rev=586143&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/mytime/mytime-ear/src/main/resources/META-INF/geronimo-application.xml (added)
+++ geronimo/samples/trunk/samples/mytime/mytime-ear/src/main/resources/META-INF/geronimo-application.xml Thu Oct 18 14:24:30 2007
@@ -0,0 +1,34 @@
+<?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: 497879 $ $Date: 2007-01-19 12:11:01 -0500 (Fri, 19 Jan 2007) $ -->
+
+<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.2">
+
+    <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
+        <moduleId>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>${pom.artifactId}</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <type>ear</type>
+        </moduleId>
+    </environment>
+
+</application>

Propchange: geronimo/samples/trunk/samples/mytime/mytime-ear/src/main/resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/mytime/mytime-ejb/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/mytime/mytime-ejb/pom.xml?rev=586143&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/mytime/mytime-ejb/pom.xml (added)
+++ geronimo/samples/trunk/samples/mytime/mytime-ejb/pom.xml Thu Oct 18 14:24:30 2007
@@ -0,0 +1,42 @@
+<?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: 508080 $ $Date: 2007-02-15 14:06:57 -0500 (Thu, 15 Feb 2007) $ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>mytime</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>mytime-ejb</artifactId>
+    <name>Geronimo Samples :: mytime :: EJB</name>
+    <packaging>jar</packaging>
+
+    <description>Geronimo Samples. EJB Module</description>
+
+
+</project>
+

Propchange: geronimo/samples/trunk/samples/mytime/mytime-ejb/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/geronimo/samples/mytimepak/MyTimeBean.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/geronimo/samples/mytimepak/MyTimeBean.java?rev=586143&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/geronimo/samples/mytimepak/MyTimeBean.java (added)
+++ geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/geronimo/samples/mytimepak/MyTimeBean.java Thu Oct 18 14:24:30 2007
@@ -0,0 +1,27 @@
+package org.apache.geronimo.samples.mytimepak;
+/*
+ *  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.
+ */
+import javax.ejb.Stateless;
+
+@Stateless
+public class MyTimeBean implements MyTimeLocal {
+
+	public String getTime() {
+		String s = new java.util.Date().toString();
+		return s;
+	}   	
+}

Propchange: geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/geronimo/samples/mytimepak/MyTimeBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/geronimo/samples/mytimepak/MyTimeLocal.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/geronimo/samples/mytimepak/MyTimeLocal.java?rev=586143&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/geronimo/samples/mytimepak/MyTimeLocal.java (added)
+++ geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/geronimo/samples/mytimepak/MyTimeLocal.java Thu Oct 18 14:24:30 2007
@@ -0,0 +1,20 @@
+package org.apache.geronimo.samples.mytimepak;
+/*
+ *  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.
+ */
+public interface MyTimeLocal {
+   public java.lang.String getTime() ;
+}

Propchange: geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/java/org/apache/geronimo/samples/mytimepak/MyTimeLocal.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/resources/META-INF/openejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/resources/META-INF/openejb-jar.xml?rev=586143&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/resources/META-INF/openejb-jar.xml (added)
+++ geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/resources/META-INF/openejb-jar.xml Thu Oct 18 14:24:30 2007
@@ -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.
+ -->
+<openejb-jar
+		xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1"
+		xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1" 
+		xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0" 
+		xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1" 
+		xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
+  <sys:environment>
+    <sys:moduleId>
+      <sys:groupId>org.apache.geronimo.samples</sys:groupId>
+      <sys:artifactId>inventory</sys:artifactId>
+      <sys:version>1.0</sys:version>
+      <sys:type>car</sys:type>
+    </sys:moduleId>
+  </sys:environment>
+</openejb-jar>

Propchange: geronimo/samples/trunk/samples/mytime/mytime-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/mytime/mytime-war/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/mytime/mytime-war/pom.xml?rev=586143&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/mytime/mytime-war/pom.xml (added)
+++ geronimo/samples/trunk/samples/mytime/mytime-war/pom.xml Thu Oct 18 14:24:30 2007
@@ -0,0 +1,74 @@
+<?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: 550875 $ $Date: 2007-06-26 13:40:09 -0400 (Tue, 26 Jun 2007) $ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>mytime</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>mytime-war</artifactId>
+    <name>Geronimo Samples :: mytime :: WAR</name>
+    <packaging>war</packaging>
+
+    <description>Geronimo Samples. WEB Module</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>mytime-ejb</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+    
+    <build>
+        <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>process-resources</phase>
+                        <id>copy-parent-site</id>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                              <echo>Copying site directory from parent</echo>
+                                <copy todir="${project.build.directory}/${pom.artifactId}-2.0-SNAPSHOT" failonerror="false" overwrite="true">
+                                    <fileset dir="${pom.basedir}/../docs"/>
+                                </copy>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Propchange: geronimo/samples/trunk/samples/mytime/mytime-war/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/WEB-INF/geronimo-web.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/WEB-INF/geronimo-web.xml?rev=586143&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/WEB-INF/geronimo-web.xml (added)
+++ geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/WEB-INF/geronimo-web.xml Thu Oct 18 14:24:30 2007
@@ -0,0 +1,28 @@
+<?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.
+ -->
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1" xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1" xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1" xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1">
+  <sys:environment>
+    <sys:moduleId>
+      <sys:groupId>org.apache.geronimo.samples</sys:groupId>
+      <sys:artifactId>MyTimeWeb</sys:artifactId>
+      <sys:version>1.0</sys:version>
+      <sys:type>car</sys:type>
+    </sys:moduleId>
+  </sys:environment>
+  <context-root>/mytime</context-root>
+</web-app>
\ No newline at end of file

Propchange: geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/WEB-INF/web.xml?rev=586143&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/WEB-INF/web.xml (added)
+++ geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/WEB-INF/web.xml Thu Oct 18 14:24:30 2007
@@ -0,0 +1,29 @@
+<?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.
+ -->
+<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+	<display-name>MyTimeWeb</display-name>
+	<welcome-file-list>
+		<welcome-file>index.html</welcome-file>
+	</welcome-file-list>
+	<!-- To refer local EJB's  -->
+	<ejb-local-ref>
+		<ejb-ref-name>ejb/MyTimeBean</ejb-ref-name>
+		<ejb-ref-type>Session</ejb-ref-type>
+		<local>org.apache.geronimo.samples.mytimepak.MyTimeLocal</local>
+	</ejb-local-ref>
+</web-app>

Propchange: geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/header.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/header.html?rev=586143&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/header.html (added)
+++ geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/header.html Thu Oct 18 14:24:30 2007
@@ -0,0 +1,55 @@
+<!--
+   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>
+        <link type="text/css" rel="stylesheet" href="http://geronimo.apache.org/style/default.css">
+        <link rel="SHORTCUT ICON" href="http://geronimo.apache.org/images/favicon.ico">   
+        <script src="http://geronimo.apache.org/functions.js" type="text/javascript"></script><title>Apache Geronimo Sample Applications</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    </head>
+    
+    <body onload="init()">
+        
+        <table valign="top" background="http://geronimo.apache.org/images/header_bg_1x86.gif" border="0" cellpadding="0" cellspacing="0" width="100%">
+            <tbody>
+                <tr>
+                    <td valing="top" align="left">
+                        <a href="http://geronimo.apache.org/"><img src="http://geronimo.apache.org/images/topleft_logo_437x64.gif" border="0"></a>
+                    </td>
+                    <td width="100%">
+                        &nbsp;
+                    </td>
+                </tr>
+            </tbody>
+        </table>
+        
+        <table border="0" cellpadding="2" cellspacing="0" width="100%">
+            <tbody>
+                <tr class="topBar">
+                    <td class="topBarDiv" align="left" nowrap="true" valign="middle" width="100%">
+                        &nbsp;<a href="http://geronimo.apache.org/" title="Apache Geronimo Home" target="_blank">Apache Geronimo Home</a> | <a href="http://cwiki.apache.org/geronimo/" title="Geronimo Documentation"target="_blank">Documentation</a> | <a href="http://cwiki.apache.org/GMOxSAMPLES/" title="Sample Applications"target="_blank">Sample Applications</a>
+                    </td>
+                    <td class="topBarDiv" align="left" nowrap="true" valign="middle">
+                        <a href="xref/index.html" target="source_window">Source Code</a> | <a href="apidocs/index.html" target="source_window">Java Docs</a>&nbsp;&nbsp;
+                    </td>
+                </tr>
+            </tbody>
+        </table>
+
+    </body>
+</html>
\ No newline at end of file

Propchange: geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/header.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/index.html?rev=586143&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/index.html (added)
+++ geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/index.html Thu Oct 18 14:24:30 2007
@@ -0,0 +1,29 @@
+<!--
+   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 html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd class="cell"">
+<html>
+<head>
+  <title>Apache Geronimo Sample Application</title>
+  <meta content="text/html; CHARSET=iso-8859-1" http-equiv="Content-Type">
+</head>
+
+<FRAMESET rows="86px,*" frameborder="0">
+    <FRAME src="./header.html" name="headerFrame" title="Header" frameborder="0" marginheight="0" marginwidth="0" noresize scrolling="no">
+    <FRAME src="./index.jsp" name="sampleDocumentFrame" title="Sample Document Description" frameborder="0" marginheight="0" marginwidth="0" noresize scrolling="no">
+</FRAMESET>
+  
+</html>

Propchange: geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/index.jsp?rev=586143&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/index.jsp (added)
+++ geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/index.jsp Thu Oct 18 14:24:30 2007
@@ -0,0 +1,36 @@
+<%@ page contentType="text/html" import="org.apache.geronimo.samples.mytimepak.*, javax.naming.* " %>
+<!--
+   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>Time</title></head><body>
+<%
+	String s="-"; // Just declare a string
+	try {
+		// This creates a context, it can be used to lookup EJBs. Using normal RMI you would
+		// have to know port number and stuff. The InitialContext holds info like
+		// server names, ports and stuff I guess.
+		Context context = new InitialContext();
+		// MyTimeLocalHome is a reference to the EJB
+		MyTimeLocal myTimeLocal = (MyTimeLocal)context.lookup("java:comp/env/ejb/MyTimeBean");
+			// So, just go ahead and call a method (in this case the only method).
+		s =  myTimeLocal.getTime();
+	}
+	catch (Exception e) {
+		s=e.toString();
+	}
+%>
+This is the time returned from the EJB: <%=s%>
+</body></html>

Propchange: geronimo/samples/trunk/samples/mytime/mytime-war/src/main/webapp/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/mytime/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/mytime/pom.xml?rev=586143&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/mytime/pom.xml (added)
+++ geronimo/samples/trunk/samples/mytime/pom.xml Thu Oct 18 14:24:30 2007
@@ -0,0 +1,77 @@
+<?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: 550875 $ $Date: 2007-06-26 13:40:09 -0400 (Tue, 26 Jun 2007) $ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    
+    <modelVersion>4.0.0</modelVersion>
+    
+    <parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>samples</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    
+    <artifactId>mytime</artifactId>
+    <name>Geronimo Samples :: mytime</name>
+    <packaging>pom</packaging>
+    
+    <description>
+        Geronimo mytime sample created from an archetype.
+    </description>
+    
+   <modules>
+        <module>mytime-ejb</module>
+        <module>mytime-war</module>
+        <module>mytime-ear</module>
+    </modules>
+
+   <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-site-plugin</artifactId>
+                <inherited>false</inherited>
+                <configuration>
+                  <outputDirectory>${project.basedir}/docs</outputDirectory>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <repositories>
+        <repository>
+            <id>apache-snapshots</id>
+            <name>Apache Snapshots Repository</name>
+            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+            <layout>default</layout>
+            <snapshots>
+                <enabled>true</enabled>
+                <updatePolicy>daily</updatePolicy>
+                <checksumPolicy>ignore</checksumPolicy>
+            </snapshots>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+        </repository>
+    </repositories> 
+
+</project>

Propchange: geronimo/samples/trunk/samples/mytime/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native