You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by pr...@apache.org on 2007/09/28 18:20:48 UTC
svn commit: r580402 - in /geronimo/samples/trunk/samples/bank: ./ bank-ear/
bank-ear/src/ bank-ear/src/main/ bank-ear/src/main/resources/
bank-ear/src/main/resources/META-INF/ bank-ejb/ bank-ejb/src/
bank-ejb/src/main/ bank-ejb/src/main/java/ bank-ejb/...
Author: prasad
Date: Fri Sep 28 09:20:44 2007
New Revision: 580402
URL: http://svn.apache.org/viewvc?rev=580402&view=rev
Log:
* ejb sample bank app
Added:
geronimo/samples/trunk/samples/bank/
geronimo/samples/trunk/samples/bank/bank-ear/
geronimo/samples/trunk/samples/bank/bank-ear/pom.xml (with props)
geronimo/samples/trunk/samples/bank/bank-ear/src/
geronimo/samples/trunk/samples/bank/bank-ear/src/main/
geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/
geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/BankDB.sql (with props)
geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/BankPool.xml (with props)
geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/META-INF/
geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/META-INF/geronimo-application.xml (with props)
geronimo/samples/trunk/samples/bank/bank-ejb/
geronimo/samples/trunk/samples/bank/bank-ejb/pom.xml (with props)
geronimo/samples/trunk/samples/bank/bank-ejb/src/
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Account.java (with props)
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeBean.java (with props)
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeLocal.java (with props)
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Customer.java (with props)
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/ExchangeRate.java (with props)
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/openejb-jar.xml (with props)
geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/persistence.xml (with props)
geronimo/samples/trunk/samples/bank/bank-war/
geronimo/samples/trunk/samples/bank/bank-war/pom.xml (with props)
geronimo/samples/trunk/samples/bank/bank-war/src/
geronimo/samples/trunk/samples/bank/bank-war/src/main/
geronimo/samples/trunk/samples/bank/bank-war/src/main/java/
geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/
geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/
geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/
geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/
geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/
geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/
geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CommonServiceServlet.java (with props)
geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CustomerServiceServlet.java (with props)
geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/
geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/
geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/geronimo-web.xml (with props)
geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/web.xml (with props)
geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_info.jsp (with props)
geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_main.jsp (with props)
geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/error.jsp (with props)
geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/exchange_rates.jsp (with props)
geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/header.html (with props)
geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.html (with props)
geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.jsp (with props)
geronimo/samples/trunk/samples/bank/pom.xml (with props)
geronimo/samples/trunk/samples/bank/src/
geronimo/samples/trunk/samples/bank/src/main/
geronimo/samples/trunk/samples/bank/src/main/resources/
Added: geronimo/samples/trunk/samples/bank/bank-ear/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-ear/pom.xml?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-ear/pom.xml (added)
+++ geronimo/samples/trunk/samples/bank/bank-ear/pom.xml Fri Sep 28 09:20:44 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$ $Date$ -->
+
+<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>bank</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>bank-ear</artifactId>
+ <name>Geronimo Samples :: bank :: 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>bank-war</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <type>war</type>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.geronimo.samples</groupId>
+ <artifactId>bank-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 bank</displayName>
+ <description>Geronimo Sample EAR for bank</description>
+ <version>5</version>
+ <modules>
+ <ejbModule>
+ <groupId>org.apache.geronimo.samples</groupId>
+ <artifactId>bank-ejb</artifactId>
+ <bundleFileName>bank-ejb-2.0-SNAPSHOT.jar</bundleFileName>
+ </ejbModule>
+
+ <webModule>
+ <groupId>org.apache.geronimo.samples</groupId>
+ <artifactId>bank-war</artifactId>
+ <contextRoot>/bank</contextRoot>
+ <bundleFileName>bank-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/bank/bank-ear/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-ear/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-ear/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/BankDB.sql
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/BankDB.sql?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/BankDB.sql (added)
+++ geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/BankDB.sql Fri Sep 28 09:20:44 2007
@@ -0,0 +1,27 @@
+
+CREATE TABLE Customer(
+ customerId VARCHAR(255) PRIMARY KEY,
+ name VARCHAR(255)
+);
+
+CREATE TABLE Account(
+ accountNumber VARCHAR(255) PRIMARY KEY,
+ accountType VARCHAR(255),
+ balance DOUBLE,
+ customerId VARCHAR(255),
+ FOREIGN KEY (customerId) REFERENCES customer
+);
+
+CREATE TABLE ExchangeRate(
+ rateId VARCHAR(255) PRIMARY KEY,
+ currency VARCHAR(255),
+ rate DOUBLE
+);
+
+INSERT INTO Customer(customerId, name) VALUES('12345','John Doe');
+INSERT INTO Account(accountNumber, accountType, balance, customerId) VALUES('1234567890','Savings',1005.35,'12345');
+INSERT INTO Account(accountNumber, accountType, balance, customerId) VALUES('2345678901','Current',999.95,'12345');
+
+INSERT INTO ExchangeRate(rateId,currency,rate) VALUES('001','EURO',0.812);
+INSERT INTO ExchangeRate(rateId,currency,rate) VALUES('002','YEN',111.15);
+INSERT INTO ExchangeRate(rateId,currency,rate) VALUES('003','SLR',99.18);
\ No newline at end of file
Propchange: geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/BankDB.sql
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/BankDB.sql
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/BankDB.sql
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/BankPool.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/BankPool.xml?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/BankPool.xml (added)
+++ geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/BankPool.xml Fri Sep 28 09:20:44 2007
@@ -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.
+-->
+<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.1">
+ <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1">
+ <dep:moduleId>
+ <dep:groupId>console.dbpool</dep:groupId>
+ <dep:artifactId>BankPool</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>BankPool</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:BankDB</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/bank/bank-ear/src/main/resources/BankPool.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/BankPool.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/BankPool.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/META-INF/geronimo-application.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/META-INF/geronimo-application.xml?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/META-INF/geronimo-application.xml (added)
+++ geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/META-INF/geronimo-application.xml Fri Sep 28 09:20:44 2007
@@ -0,0 +1,38 @@
+<?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$ -->
+
+<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>
+
+ <module>
+ <connector>tranql-connector-ra-1.3.rar</connector>
+ <alt-dd>BankPool.xml</alt-dd>
+ </module>
+</application>
Propchange: geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-ear/src/main/resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/samples/trunk/samples/bank/bank-ejb/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-ejb/pom.xml?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-ejb/pom.xml (added)
+++ geronimo/samples/trunk/samples/bank/bank-ejb/pom.xml Fri Sep 28 09:20:44 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$ $Date$ -->
+
+<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>bank</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>bank-ejb</artifactId>
+ <name>Geronimo Samples :: bank :: EJB</name>
+ <packaging>jar</packaging>
+
+ <description>Geronimo Samples. EJB Module</description>
+
+
+</project>
+
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Account.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Account.java?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Account.java (added)
+++ geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Account.java Fri Sep 28 09:20:44 2007
@@ -0,0 +1,59 @@
+package org.apache.geronimo.samples.bank.ejb;
+
+import java.io.Serializable;
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.Table;
+
+@Entity
+@Table(name = "account")
+public class Account implements Serializable {
+ private String accountNumber;
+ private String accountType;
+ private double balance;
+ private String customerId;
+
+ public Account() {
+
+ }
+
+ public Account(String account_number, String account_type, double balance, String customerId) {
+ this.accountNumber = account_number;
+ this.accountType = account_type;
+ this.balance = balance;
+ this.customerId = customerId;
+ }
+
+ @Id
+ public String getAccountNumber() {
+ return this.accountNumber;
+ }
+
+ public void setAccountNumber(String accountNumber) {
+ this.accountNumber = accountNumber;
+ }
+
+ public String getAccountType() {
+ return this.accountType;
+ }
+
+ public void setAccountType(String accountType) {
+ this.accountType = accountType;
+ }
+
+ public double getBalance() {
+ return this.balance;
+ }
+
+ public void setBalance(double balance) {
+ this.balance = balance;
+ }
+
+ public String getCustomerId() {
+ return this.customerId;
+ }
+
+ public void setCustomerId(String customerId) {
+ this.customerId = customerId;
+ }
+}
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Account.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Account.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Account.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeBean.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeBean.java?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeBean.java (added)
+++ geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeBean.java Fri Sep 28 09:20:44 2007
@@ -0,0 +1,93 @@
+/*
+ * 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 org.apache.geronimo.samples.bank.ejb;
+
+import java.rmi.RemoteException;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+import java.util.ArrayList;
+
+import javax.persistence.PersistenceUnit;
+import javax.ejb.EJBException;
+import javax.ejb.Stateless;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.persistence.EntityManager;
+import javax.persistence.EntityManagerFactory;
+
+@Stateless
+public class BankManagerFacadeBean implements BankManagerFacadeLocal {
+
+ @PersistenceUnit(unitName="BankPU")
+ protected EntityManagerFactory emf;
+
+ public BankManagerFacadeBean() {
+
+ }
+
+ public List<Account> getAccountInformation(String customerId) {
+ EntityManager em = emf.createEntityManager();
+ String query = "SELECT * FROM Account WHERE customerId='" + customerId + "'";
+ List<Account> accountBeanList = (List<Account>)em.createNativeQuery( query, Account.class ).getResultList();
+ em.close();
+ return accountBeanList;
+ }
+
+ public List<ExchangeRate> getExchangeRates() {
+ EntityManager em = emf.createEntityManager();
+ String query = "SELECT * FROM ExchangeRate";
+ List<ExchangeRate> rateList = (List<ExchangeRate>)em.createNativeQuery( query, ExchangeRate.class ).getResultList();
+ em.close();
+ return rateList;
+ }
+
+ public Customer getCustomer(String customerCode){
+ EntityManager em = emf.createEntityManager();
+
+ Customer customer = (Customer)em.find(Customer.class, customerCode);
+ em.close();
+ return customer;
+ }
+
+
+ public void changeAccountBalance(String accountNo,Double balance) {
+ EntityManager em = emf.createEntityManager();
+ // get the Account
+ Account account = (Account)em.find(Account.class, accountNo);
+
+ // update the Account object
+ account.setBalance(balance);
+ em.persist(em);
+
+ em.close();
+ }
+
+ public Double getAccountBalance(String accountNo){
+ EntityManager em = emf.createEntityManager();
+
+ // get Account
+ Account account = (Account)em.find(Account.class, accountNo);
+
+ em.close();
+
+ // return the balance as an object
+ return new Double(account.getBalance());
+ }
+}
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeBean.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeBean.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeLocal.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeLocal.java?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeLocal.java (added)
+++ geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeLocal.java Fri Sep 28 09:20:44 2007
@@ -0,0 +1,15 @@
+package org.apache.geronimo.samples.bank.ejb;
+
+import org.apache.geronimo.samples.bank.ejb.Account;
+import org.apache.geronimo.samples.bank.ejb.ExchangeRate;
+import org.apache.geronimo.samples.bank.ejb.Customer;
+
+public interface BankManagerFacadeLocal {
+ public java.util.List<Account> getAccountInformation(String customerId);
+
+ public java.util.List<ExchangeRate> getExchangeRates();
+
+ public Customer getCustomer(String customerCode);
+
+ public Double getAccountBalance(String accountNo);
+}
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeLocal.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeLocal.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeLocal.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Customer.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Customer.java?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Customer.java (added)
+++ geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Customer.java Fri Sep 28 09:20:44 2007
@@ -0,0 +1,39 @@
+package org.apache.geronimo.samples.bank.ejb;
+
+import java.io.Serializable;
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.Table;
+
+@Entity
+@Table(name = "customer")
+public class Customer implements Serializable {
+ private String customerId;
+ private String name;
+
+ public Customer() {
+
+ }
+
+ public Customer(String customerId, String name) {
+ this.customerId = customerId;
+ this.name = name;
+ }
+
+ @Id
+ public String getCustomerId() {
+ return this.customerId;
+ }
+
+ public void setCustomerId(String customerId) {
+ this.customerId = customerId;
+ }
+
+ public String getName() {
+ return this.name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Customer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Customer.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/Customer.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/ExchangeRate.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/ExchangeRate.java?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/ExchangeRate.java (added)
+++ geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/ExchangeRate.java Fri Sep 28 09:20:44 2007
@@ -0,0 +1,49 @@
+package org.apache.geronimo.samples.bank.ejb;
+
+import java.io.Serializable;
+import javax.persistence.Id;
+import javax.persistence.Table;
+import javax.persistence.Entity;
+
+@Entity
+@Table(name = "ExchangeRate")
+public class ExchangeRate implements Serializable {
+ private String rateId;
+ private String currency;
+ private double rate;
+
+ public ExchangeRate() {
+
+ }
+
+ public ExchangeRate(String rateId, String currency, double rate) {
+ this.rateId = rateId;
+ this.currency = currency;
+ this.rate = rate;
+ }
+
+ @Id
+ public String getRateId() {
+ return this.rateId;
+ }
+
+ public void setRateId(String rateId) {
+ this.rateId = rateId;
+ }
+
+ public String getCurrency() {
+ return this.currency;
+ }
+
+ public void setCurrency(String currency) {
+ this.currency = currency;
+ }
+
+ public double getRate() {
+ return this.rate;
+ }
+
+ public void setRate(double rate) {
+ this.rate = rate;
+ }
+}
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/ExchangeRate.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/ExchangeRate.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/java/org/apache/geronimo/samples/bank/ejb/ExchangeRate.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/openejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/openejb-jar.xml?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/openejb-jar.xml (added)
+++ geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/openejb-jar.xml Fri Sep 28 09:20:44 2007
@@ -0,0 +1,38 @@
+<?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">
+ <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
+ <dep:moduleId>
+ <dep:groupId>org.apache.geronimo.samples</dep:groupId>
+ <dep:artifactId>BankEJB</dep:artifactId>
+ <dep:version>1.2</dep:version>
+ <dep:type>car</dep:type>
+ </dep:moduleId>
+ <dep:dependencies>
+ <dep:dependency>
+ <dep:groupId>org.apache.geronimo.configs</dep:groupId>
+ <dep:artifactId>openjpa</dep:artifactId>
+ <dep:type>car</dep:type>
+ </dep:dependency>
+ </dep:dependencies>
+ <dep:hidden-classes/>
+ <dep:non-overridable-classes/>
+ </dep:environment>
+</openejb-jar>
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/persistence.xml?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/persistence.xml (added)
+++ geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/persistence.xml Fri Sep 28 09:20:44 2007
@@ -0,0 +1,17 @@
+<?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="BankPU">
+ <description>Entity Beans for Bank</description>
+ <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+ <class>org.apache.geronimo.samples.bank.ejb.Account</class>
+ <class>org.apache.geronimo.samples.bank.ejb.Customer</class>
+ <class>org.apache.geronimo.samples.bank.ejb.ExchangeRate</class>
+ <properties>
+ <property name="openjpa.jdbc.SynchronizeMappings" value="false" />
+ </properties>
+ <jta-data-source>BankPool</jta-data-source>
+ <non-jta-data-source>BankPool</non-jta-data-source>
+ </persistence-unit>
+</persistence>
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-ejb/src/main/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/samples/trunk/samples/bank/bank-war/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-war/pom.xml?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-war/pom.xml (added)
+++ geronimo/samples/trunk/samples/bank/bank-war/pom.xml Fri Sep 28 09:20:44 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$ $Date$ -->
+
+<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>bank</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>bank-war</artifactId>
+ <name>Geronimo Samples :: bank :: WAR</name>
+ <packaging>war</packaging>
+
+ <description>Geronimo Samples. WEB Module</description>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.geronimo.samples</groupId>
+ <artifactId>bank-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/bank/bank-war/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-war/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-war/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CommonServiceServlet.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CommonServiceServlet.java?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CommonServiceServlet.java (added)
+++ geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CommonServiceServlet.java Fri Sep 28 09:20:44 2007
@@ -0,0 +1,67 @@
+/*
+ * 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 org.apache.geronimo.samples.bank.web;
+
+import java.io.IOException;
+import java.util.Collection;
+import java.util.List;
+import java.util.ArrayList;
+
+import javax.ejb.EJB;
+import javax.persistence.EntityManagerFactory;
+import javax.persistence.EntityManager;
+import javax.persistence.PersistenceUnit;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.geronimo.samples.bank.ejb.BankManagerFacadeLocal;
+import org.apache.geronimo.samples.bank.ejb.ExchangeRate;
+import org.apache.geronimo.samples.bank.ejb.Customer;
+
+public class CommonServiceServlet extends HttpServlet {
+ @EJB
+ private BankManagerFacadeLocal bm = null;
+
+ protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
+ viewRates(req, res);
+ }
+
+ protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
+ doGet(req,res);
+ }
+
+ private void viewRates(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{
+ String path = "/error.jsp";;
+
+ try {
+ List<ExchangeRate> rates = (List<ExchangeRate>)bm.getExchangeRates();
+ req.setAttribute("ratesList", rates);
+
+ path = "/exchange_rates.jsp";
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ getServletContext().getRequestDispatcher(path).forward(req,res);
+ }
+}
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CommonServiceServlet.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CommonServiceServlet.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CommonServiceServlet.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CustomerServiceServlet.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CustomerServiceServlet.java?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CustomerServiceServlet.java (added)
+++ geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CustomerServiceServlet.java Fri Sep 28 09:20:44 2007
@@ -0,0 +1,73 @@
+/*
+ * 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 org.apache.geronimo.samples.bank.web;
+
+import java.io.IOException;
+import java.util.List;
+
+import javax.ejb.EJB;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.geronimo.samples.bank.ejb.BankManagerFacadeLocal;
+import org.apache.geronimo.samples.bank.ejb.Customer;
+import org.apache.geronimo.samples.bank.ejb.Account;
+
+
+public class CustomerServiceServlet extends HttpServlet {
+ @EJB
+ private BankManagerFacadeLocal bm = null;
+
+ protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
+ viewCustomerInfo(req, res);
+ }
+
+ protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
+ doGet(req,res);
+ }
+
+ private void viewCustomerInfo(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{
+ String path = "/error.jsp";;
+ try {
+ String customerCode = req.getParameter("customerCode");
+
+ List<Account> accountList = (List<Account>)bm.getAccountInformation(customerCode);
+ Customer customer = bm.getCustomer(customerCode);
+
+
+ if(accountList != null && customer!= null){
+
+ req.setAttribute("accountList",accountList);
+ req.setAttribute("customerCode",customerCode);
+ req.setAttribute("customerName",customer.getName());
+ path = "/customer_info.jsp";
+
+ }
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ getServletContext().getRequestDispatcher(path).forward(req,res);
+ }
+
+}
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CustomerServiceServlet.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CustomerServiceServlet.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/java/org/apache/geronimo/samples/bank/web/CustomerServiceServlet.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/geronimo-web.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/geronimo-web.xml?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/geronimo-web.xml (added)
+++ geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/geronimo-web.xml Fri Sep 28 09:20:44 2007
@@ -0,0 +1,33 @@
+<!--
+ 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:naming="http://geronimo.apache.org/xml/ns/naming-1.1">
+ <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1">
+ <dep:moduleId>
+ <dep:groupId>org.apache.geronimo.samples</dep:groupId>
+ <dep:artifactId>BankWeb</dep:artifactId>
+ <dep:version>1.2</dep:version>
+ <dep:type>car</dep:type>
+ </dep:moduleId>
+ <dep:dependencies/>
+ <dep:hidden-classes/>
+ <dep:non-overridable-classes/>
+ </dep:environment>
+
+ <context-root>/Bank</context-root>
+</web-app>
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/web.xml?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/web.xml (added)
+++ geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/web.xml Fri Sep 28 09:20:44 2007
@@ -0,0 +1,50 @@
+<?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://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_5.xsd"
+ version="2.5">
+
+ <welcome-file-list>
+ <welcome-file>/index.html</welcome-file>
+ </welcome-file-list>
+
+ <servlet>
+ <display-name>CustomerServiceServlet</display-name>
+ <servlet-name>CustomerServiceServlet</servlet-name>
+ <servlet-class>org.apache.geronimo.samples.bank.web.CustomerServiceServlet</servlet-class>
+ </servlet>
+
+ <servlet>
+ <display-name>CommonServiceServlet</display-name>
+ <servlet-name>CommonServiceServlet</servlet-name>
+ <servlet-class>org.apache.geronimo.samples.bank.web.CommonServiceServlet</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>CustomerServiceServlet</servlet-name>
+ <url-pattern>/customer_info</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>CommonServiceServlet</servlet-name>
+ <url-pattern>/exchange_rates</url-pattern>
+ </servlet-mapping>
+</web-app>
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_info.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_info.jsp?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_info.jsp (added)
+++ geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_info.jsp Fri Sep 28 09:20:44 2007
@@ -0,0 +1,62 @@
+<%@ page import="org.apache.geronimo.samples.bank.ejb.Account" %>
+<%@ page import="java.util.List" %>
+<!--
+ 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>Customer Account Information</TITLE></HEAD>
+<BODY>
+ <DIV align="center">
+ <H2>Customer Account Information</H2>
+ <%
+ String customerId = (String)request.getAttribute("customerCode");
+ String customerName = (String)request.getAttribute("customerName");
+ List<Account> accountList = (List<Account>)request.getAttribute("accountList");
+ %>
+ <BR><BR><B>Customer Id: </B><%=customerId%>
+ <BR><B>Customer Name: </B><%=customerName%>
+ <BR>
+ <BR>
+ <BR>
+ <TABLE bgcolor="cyan">
+ <TR>
+ <TD><B>Account Number</B></TD>
+ <TD><B>Account Type</B></TD>
+ <TD><B>Balance</B></TD>
+ </TR>
+ <%
+ for(int i=0; i<accountList.size(); i++) {
+ Account account = (Account)accountList.get(i);
+ String accNo = account.getAccountNumber();
+ String accType = account.getAccountType();
+ String balance = "" + account.getBalance();
+ %>
+ <TR>
+ <TD><%=accNo%></TD>
+ <TD><%=accType%></TD>
+ <TD><%=balance%></TD>
+ </TR>
+ <%
+ }
+ %>
+ </TABLE>
+ <BR><BR>
+ <a href="../Bank/index.jsp">Home</a>
+ </DIV>
+</BODY>
+</HTML>
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_info.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_info.jsp
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_info.jsp
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_main.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_main.jsp?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_main.jsp (added)
+++ geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_main.jsp Fri Sep 28 09:20:44 2007
@@ -0,0 +1,38 @@
+<!--
+ 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>View Customer Information</TITLE></HEAD>
+<BODY>
+<div align="center">
+<H2>View Customer Information</H2>
+<FORM method="POST" action="customer_info">
+ <TABLE bgcolor="cyan">
+ <TR>
+ <TD>Customer Id:</TD>
+ <TD><INPUT type="text" name="customerCode"></TD>
+ </TR>
+ </TABLE>
+ <BR>
+ <INPUT type="submit" value="View"> <INPUT type="reset" value="Cancel">
+ <BR><BR>
+ <a href="../Bank/index.jsp">Home</a>
+</FORM>
+</div>
+</BODY>
+</HTML>
\ No newline at end of file
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_main.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_main.jsp
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/customer_main.jsp
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/error.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/error.jsp?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/error.jsp (added)
+++ geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/error.jsp Fri Sep 28 09:20:44 2007
@@ -0,0 +1,28 @@
+<!--
+ 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>Error</TITLE></HEAD>
+<BODY>
+ <div align="center">
+ <H2>Error Occured !!!</H2>
+ <BR><BR>
+ <a href="../Bank/">Home</a>
+ </div>
+</BODY>
+</HTML>
\ No newline at end of file
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/error.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/error.jsp
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/error.jsp
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/exchange_rates.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/exchange_rates.jsp?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/exchange_rates.jsp (added)
+++ geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/exchange_rates.jsp Fri Sep 28 09:20:44 2007
@@ -0,0 +1,57 @@
+<%@ page import="org.apache.geronimo.samples.bank.ejb.ExchangeRate" %>
+<%@ page import="java.util.*" %>
+<!--
+ 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>Exchange Rates</TITLE></HEAD>
+<BODY>
+ <DIV align="center">
+ <H2>Exchange Rates</H2>
+ <BR><BR>
+ <TABLE bgcolor="cyan">
+ <TR>
+ <TD><B>Currency</B></TD>
+ <TD><B>Rate</B></TD>
+ </TR>
+ <%
+ if(request.getAttribute("ratesList") != null) {
+ List<ExchangeRate> rateList = (List<ExchangeRate>)request.getAttribute("ratesList");
+ for(int i=0; i < rateList.size(); i++) {
+ ExchangeRate rate = (ExchangeRate)rateList.get(i);
+ if(rate == null) {
+ out.println("<tr><td>not found</td><td></td></tr>");
+ } else {
+ String currency = rate.getCurrency();
+ Double rateVal = rate.getRate();
+ %>
+ <TR>
+ <TD><%= currency %></TD>
+ <TD><%= rateVal.toString() %></TD>
+ </TR>
+ <%
+ }
+ }
+ }
+ %>
+ </TABLE>
+ <BR><BR>
+ <a href="../Bank/index.jsp">Home</a>
+ </DIV>
+</BODY>
+</HTML>
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/exchange_rates.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/exchange_rates.jsp
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/exchange_rates.jsp
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/header.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/header.html?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/header.html (added)
+++ geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/header.html Fri Sep 28 09:20:44 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%">
+
+ </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%">
+ <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>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ </body>
+</html>
\ No newline at end of file
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/header.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/header.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/header.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.html?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.html (added)
+++ geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.html Fri Sep 28 09:20:44 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="Bank" title="Bank" frameborder="0" marginheight="0" marginwidth="0" noresize scrolling="no">
+</FRAMESET>
+
+</html>
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.jsp?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.jsp (added)
+++ geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.jsp Fri Sep 28 09:20:44 2007
@@ -0,0 +1,30 @@
+<!--
+ 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>Banking Web Application</TITLE></HEAD>
+<BODY>
+<div align="center">
+<H2>Banking Web Application</H2>
+<BR><BR>
+ <a href="customer_main.jsp" name="Bank">View Customer Information</a>
+<BR><BR>
+ <a href="exchange_rates" name="Bank">View Exchange Rates</a>
+</div>
+</BODY>
+</HTML>
\ No newline at end of file
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.jsp
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/bank-war/src/main/webapp/index.jsp
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/samples/trunk/samples/bank/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/bank/pom.xml?rev=580402&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/bank/pom.xml (added)
+++ geronimo/samples/trunk/samples/bank/pom.xml Fri Sep 28 09:20:44 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$ $Date$ -->
+
+<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>bank</artifactId>
+ <name>Geronimo Samples :: bank</name>
+ <packaging>pom</packaging>
+
+ <description>
+ Geronimo bank sample created from an archetype.
+ </description>
+
+ <modules>
+ <module>bank-ejb</module>
+ <module>bank-war</module>
+ <module>bank-ear</module>
+ </modules>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-annotation_1.0_spec</artifactId>
+ <version>1.1</version>
+ <type>jar</type>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-jpa_3.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/bank/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/bank/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/bank/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml