geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r586140 - in /geronimo/samples/trunk/samples/myphonebook: ./ myphonebook-ear/ myphonebook-ear/src/ myphonebook-ear/src/main/ myphonebook-ear/src/main/resources/ myphonebook-ear/src/main/resources/META-INF/ myphonebook-ejb/ myphonebook-ejb/s...
Date Thu, 18 Oct 2007 21:15:13 GMT
Author: gawor
Date: Thu Oct 18 14:15:11 2007
New Revision: 586140

URL: http://svn.apache.org/viewvc?rev=586140&view=rev
Log:
import myphonebook sample into svn (yes, i need to add in missing apache headers)

Added:
    geronimo/samples/trunk/samples/myphonebook/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/pom.xml   (with props)
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/META-INF/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/META-INF/geronimo-application.xml
  (with props)
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/PhoneBook.sql
  (with props)
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/PhoneBookPool.xml
  (with props)
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/pom.xml   (with props)
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/MyPhonebookBean.java
  (with props)
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/MyPhonebookLocal.java
  (with props)
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/PhoneBook.java
  (with props)
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/resources/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/resources/META-INF/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/resources/META-INF/openejb-jar.xml
  (with props)
    geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/resources/META-INF/persistence.xml
  (with props)
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/pom.xml   (with props)
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/java/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/java/org/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/java/org/apache/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/java/org/apache/geronimo/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/java/org/apache/geronimo/samples/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/WEB-INF/
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/WEB-INF/geronimo-web.xml
  (with props)
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/WEB-INF/web.xml
  (with props)
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/header.html
  (with props)
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/index.html
  (with props)
    geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/index.jsp 
 (with props)
    geronimo/samples/trunk/samples/myphonebook/pom.xml   (with props)

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/pom.xml?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/pom.xml (added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/pom.xml Thu Oct 18 14:15:11
2007
@@ -0,0 +1,111 @@
+<?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>myphonebook</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>myphonebook-ear</artifactId>
+    <name>Geronimo Samples :: myphonebook :: EAR</name>
+    <packaging>ear</packaging>
+
+    <description>Geronimo Samples. EAR Module</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.tranql</groupId>
+            <artifactId>tranql-connector-ra</artifactId>
+            <version>1.3</version>
+            <type>rar</type>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>myphonebook-war</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <type>war</type>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>myphonebook-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 myphonebook</displayName>
+                    <description>Geronimo Sample EAR for myphonebook</description>
+                    <version>5</version>
+                    <modules>
+                      <ejbModule>
+                            <groupId>org.apache.geronimo.samples</groupId>
+                            <artifactId>myphonebook-ejb</artifactId>
+                            <bundleFileName>myphonebook-ejb-2.0-SNAPSHOT.jar</bundleFileName>
+                        </ejbModule>
+
+                        <webModule>
+                            <groupId>org.apache.geronimo.samples</groupId>
+                            <artifactId>myphonebook-war</artifactId>
+                            <contextRoot>/myphonebook</contextRoot>
+                            <bundleFileName>myphonebook-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/myphonebook/myphonebook-ear/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/META-INF/geronimo-application.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/META-INF/geronimo-application.xml?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/META-INF/geronimo-application.xml
(added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/META-INF/geronimo-application.xml
Thu Oct 18 14:15:11 2007
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application	xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.1"
+				xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
+				xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1"
+				application-name="t6">
+  <sys:environment>
+    <sys:moduleId>
+      <sys:groupId>org.apache.geronimo.samples</sys:groupId>
+      <sys:artifactId>MyPhonebook</sys:artifactId>
+      <sys:version>1.0</sys:version>
+      <sys:type>car</sys:type>
+    </sys:moduleId>
+  </sys:environment>
+
+  <module>
+	<connector>tranql-connector-ra-1.3.rar</connector>
+	<alt-dd>PhoneBookPool.xml</alt-dd>
+  </module>
+</application>
+
+

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

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/PhoneBook.sql
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/PhoneBook.sql?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/PhoneBook.sql
(added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/PhoneBook.sql
Thu Oct 18 14:15:11 2007
@@ -0,0 +1,3 @@
+CREATE TABLE phonebook (name VARCHAR(255) PRIMARY KEY, number VARCHAR(255)) ;
+INSERT INTO phonebook VALUES('John', '1234');
+INSERT INTO phonebook VALUES('Joe', '5678');
\ No newline at end of file

Propchange: geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/PhoneBook.sql
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/PhoneBookPool.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/PhoneBookPool.xml?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/PhoneBookPool.xml
(added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/PhoneBookPool.xml
Thu Oct 18 14:15:11 2007
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
+    <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
+        <dep:moduleId>
+            <dep:groupId>console.dbpool</dep:groupId>
+            <dep:artifactId>PhoneBookPool</dep:artifactId>
+            <dep:version>1.0</dep:version>
+            <dep:type>rar</dep:type>
+        </dep:moduleId>
+        <dep:dependencies>
+            <dep:dependency>
+                <dep:groupId>org.apache.geronimo.configs</dep:groupId>
+                <dep:artifactId>system-database</dep:artifactId>
+                <dep:type>car</dep:type>
+            </dep:dependency>
+        </dep:dependencies>
+    </dep:environment>
+    <resourceadapter>
+        <outbound-resourceadapter>
+            <connection-definition>
+                <connectionfactory-interface>javax.sql.DataSource</connectionfactory-interface>
+                <connectiondefinition-instance>
+                    <name>PhoneBookPool</name>
+                    <config-property-setting name="Driver">org.apache.derby.jdbc.EmbeddedDriver</config-property-setting>
+                    <config-property-setting name="UserName">app</config-property-setting>
+                    <config-property-setting name="ConnectionURL">jdbc:derby:PhoneBookDB</config-property-setting>
+                    <connectionmanager>
+                        <local-transaction/>
+                        <single-pool>
+                            <max-size>10</max-size>
+                            <min-size>0</min-size>
+                            <match-one/>
+                        </single-pool>
+                    </connectionmanager>
+                </connectiondefinition-instance>
+            </connection-definition>
+        </outbound-resourceadapter>
+    </resourceadapter>
+</connector>

Propchange: geronimo/samples/trunk/samples/myphonebook/myphonebook-ear/src/main/resources/PhoneBookPool.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/pom.xml?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/pom.xml (added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/pom.xml Thu Oct 18 14:15:11
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>myphonebook</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>myphonebook-ejb</artifactId>
+    <name>Geronimo Samples :: myphonebook :: EJB</name>
+    <packaging>jar</packaging>
+
+    <description>Geronimo Samples. EJB Module</description>
+
+
+</project>
+

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

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/MyPhonebookBean.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/MyPhonebookBean.java?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/MyPhonebookBean.java
(added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/MyPhonebookBean.java
Thu Oct 18 14:15:11 2007
@@ -0,0 +1,29 @@
+package org.apache.geronimo.samples.myphonebookpak;
+
+import javax.ejb.Stateless;
+import javax.persistence.PersistenceUnit;
+import javax.persistence.EntityManager;
+import javax.persistence.EntityManagerFactory;
+
+import org.apache.geronimo.samples.myphonebookpak.PhoneBook;
+
+@Stateless
+public class MyPhonebookBean implements MyPhonebookLocal {
+
+	@PersistenceUnit(unitName="PhonePU")
+	protected EntityManagerFactory emf;
+
+	public MyPhonebookBean() {
+
+	}
+   
+	public PhoneBook findByPrimaryKey(String name) {
+		EntityManager em = emf.createEntityManager();
+
+		PhoneBook phonebook = (PhoneBook)em.find(PhoneBook.class, name);
+
+		em.close();
+
+		return phonebook;
+	}
+}

Propchange: geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/MyPhonebookBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/MyPhonebookLocal.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/MyPhonebookLocal.java?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/MyPhonebookLocal.java
(added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/MyPhonebookLocal.java
Thu Oct 18 14:15:11 2007
@@ -0,0 +1,7 @@
+package org.apache.geronimo.samples.myphonebookpak;
+
+import org.apache.geronimo.samples.myphonebookpak.PhoneBook;
+
+public interface MyPhonebookLocal {
+	public PhoneBook findByPrimaryKey(String name);
+}

Propchange: geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/MyPhonebookLocal.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/PhoneBook.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/PhoneBook.java?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/PhoneBook.java
(added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/PhoneBook.java
Thu Oct 18 14:15:11 2007
@@ -0,0 +1,42 @@
+package org.apache.geronimo.samples.myphonebookpak;
+
+import java.io.Serializable;
+
+import javax.persistence.Id;
+import javax.persistence.Entity;
+import javax.persistence.Table;
+
+@Entity
+@Table(name = "phonebook")
+public class PhoneBook implements Serializable {
+
+	private String number;
+	private String name;
+
+	public PhoneBook() {
+
+	}
+
+	public PhoneBook(String name, String number) {
+		this.name = name;
+		this.number = number;
+	}
+
+	@Id
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public String getNumber() {
+		return number;
+	}
+
+	public void setNumber(String number) {
+		this.number = number;
+	}
+
+}

Propchange: geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/java/org/apache/geronimo/samples/myphonebookpak/PhoneBook.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/resources/META-INF/openejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/resources/META-INF/openejb-jar.xml?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/resources/META-INF/openejb-jar.xml
(added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/resources/META-INF/openejb-jar.xml
Thu Oct 18 14:15:11 2007
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>MyPhonebookBean</sys:artifactId>
+			<sys:version>1.0</sys:version>
+			<sys:type>car</sys:type>
+		</sys:moduleId>
+	</sys:environment>
+</openejb-jar>

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

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/resources/META-INF/persistence.xml?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/resources/META-INF/persistence.xml
(added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-ejb/src/main/resources/META-INF/persistence.xml
Thu Oct 18 14:15:11 2007
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence	xmlns="http://java.sun.com/xml/ns/persistence"
+				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"
+				xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
+	<persistence-unit name="PhonePU">
+		<description>Phone Book</description>
+		<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+		<class>org.apache.geronimo.samples.myphonebookpak.PhoneBook</class>
+		<properties>
+			<property name="openjpa.ConnectionURL" value="jdbc:derby:PhoneBookDB" />
+			<property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"
/>
+			<property name="ConnectionUserName" value="app" />
+			<property name="openjpa.jdbc.SynchronizeMappings" value="false" />
+		</properties>
+	</persistence-unit>
+	<!--
+	<jta-data-source>PhoneBookPool</jta-data-source>
+	<non-jta-data-source>PhoneBookPool</non-jta-data-source>
+	-->
+</persistence>

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

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-war/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-war/pom.xml?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-war/pom.xml (added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-war/pom.xml Thu Oct 18 14:15:11
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>myphonebook</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>myphonebook-war</artifactId>
+    <name>Geronimo Samples :: myphonebook :: WAR</name>
+    <packaging>war</packaging>
+
+    <description>Geronimo Samples. WEB Module</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>myphonebook-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/myphonebook/myphonebook-war/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/WEB-INF/geronimo-web.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/WEB-INF/geronimo-web.xml?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/WEB-INF/geronimo-web.xml
(added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/WEB-INF/geronimo-web.xml
Thu Oct 18 14:15:11 2007
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>MyPhonebookWeb</sys:artifactId>
+      <sys:version>1.0</sys:version>
+      <sys:type>car</sys:type>
+    </sys:moduleId>
+  </sys:environment>
+  <context-root>/myphonebook</context-root>
+</web-app>

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

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/WEB-INF/web.xml?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/WEB-INF/web.xml
(added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/WEB-INF/web.xml
Thu Oct 18 14:15:11 2007
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>MyPhonebookWeb</display-name>
+	<welcome-file-list>
+		<welcome-file>index.html</welcome-file>
+	</welcome-file-list>
+	<ejb-local-ref>
+		<ejb-ref-name>ejb/MyPhonebookBean</ejb-ref-name>
+		<ejb-ref-type>Entity</ejb-ref-type>
+		<local>org.apache.geronimo.samples.myphonebookpak.MyPhonebookLocal</local>
+	</ejb-local-ref>
+</web-app>

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

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/header.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/header.html?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/header.html
(added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/header.html
Thu Oct 18 14:15:11 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/myphonebook/myphonebook-war/src/main/webapp/header.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/index.html?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/index.html
(added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/index.html
Thu Oct 18 14:15:11 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/myphonebook/myphonebook-war/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/index.jsp?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/index.jsp (added)
+++ geronimo/samples/trunk/samples/myphonebook/myphonebook-war/src/main/webapp/index.jsp Thu
Oct 18 14:15:11 2007
@@ -0,0 +1,35 @@
+<%@ page contentType="text/html" import="org.apache.geronimo.samples.myphonebookpak.*,
javax.naming.* " %>
+
+<%
+	String searchName = "";
+	if (request.getParameter("searchname") != null) {
+		searchName=request.getParameter("searchname");
+	}
+%>
+
+<html><head><title>Phonebook</title></head><body>
+<form action="index.jsp">
+<b>Search number</b>:<br>
+Enter name: <input type="text" name="searchname" value="<%=searchName%>">  
+<input type="submit" value="Search">
+(Test with <a href="index.jsp?searchname=Joe">Joe</a>)
+</form>
+<%
+	if (! searchName.equals("")) {
+		String number="";
+		try {
+			Context context = new InitialContext();
+			MyPhonebookLocal myPhonebookLocal = (MyPhonebookLocal)context.lookup("java:comp/env/ejb/MyPhonebookBean");
+			PhoneBook phonebook = myPhonebookLocal.findByPrimaryKey(searchName);
+			if(phonebook != null) {
+				number =  phonebook.getNumber();
+			}	
+		}
+		catch (Exception e) {
+			number=e.toString();
+		}
+		out.println("This is the number returned from the EJB when searching for '"+searchName+"'
: " + number);
+	}
+%>
+
+</body></html>

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

Added: geronimo/samples/trunk/samples/myphonebook/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/myphonebook/pom.xml?rev=586140&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/myphonebook/pom.xml (added)
+++ geronimo/samples/trunk/samples/myphonebook/pom.xml Thu Oct 18 14:15:11 2007
@@ -0,0 +1,93 @@
+<?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>myphonebook</artifactId>
+    <name>Geronimo Samples :: myphonebook</name>
+    <packaging>pom</packaging>
+    
+    <description>
+        Geronimo myphonebook sample created from an archetype.
+    </description>
+    
+	<modules>
+        <module>myphonebook-ejb</module>
+        <module>myphonebook-war</module>
+        <module>myphonebook-ear</module>
+    </modules>
+	
+	<dependencies>
+		<dependency>
+			<groupId>org.apache.geronimo.specs</groupId>
+			<artifactId>geronimo-jpa_3.0_spec</artifactId>
+			<version>1.1</version>
+			<type>jar</type>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.geronimo.specs</groupId>
+			<artifactId>geronimo-annotation_1.0_spec</artifactId>
+			<version>1.1</version>
+			<type>jar</type>
+		</dependency>
+	</dependencies>
+
+   <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/myphonebook/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message