geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lin...@apache.org
Subject svn commit: r678892 - in /geronimo/samples: branches/2.1/samples/customer/ branches/2.1/samples/customer/customer-client/ branches/2.1/samples/customer/customer-client/src/ branches/2.1/samples/customer/customer-client/src/main/ branches/2.1/samples/cu...
Date Tue, 22 Jul 2008 20:46:30 GMT
Author: linsun
Date: Tue Jul 22 13:46:29 2008
New Revision: 678892

URL: http://svn.apache.org/viewvc?rev=678892&view=rev
Log:
Add a command line client module for the customer sample

Added:
    geronimo/samples/branches/2.1/samples/customer/customer-client/
    geronimo/samples/branches/2.1/samples/customer/customer-client/pom.xml   (with props)
    geronimo/samples/branches/2.1/samples/customer/customer-client/src/
    geronimo/samples/branches/2.1/samples/customer/customer-client/src/main/
    geronimo/samples/branches/2.1/samples/customer/customer-client/src/main/java/
    geronimo/samples/branches/2.1/samples/customer/customer-client/src/main/java/com/
    geronimo/samples/branches/2.1/samples/customer/customer-client/src/main/java/com/service/
    geronimo/samples/branches/2.1/samples/customer/customer-client/src/main/java/com/service/customer/
    geronimo/samples/branches/2.1/samples/customer/customer-client/src/main/java/com/service/customer/client/
    geronimo/samples/branches/2.1/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java
  (with props)
    geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java
  (with props)
    geronimo/samples/trunk/samples/customer/customer-client/
    geronimo/samples/trunk/samples/customer/customer-client/pom.xml   (with props)
    geronimo/samples/trunk/samples/customer/customer-client/src/
    geronimo/samples/trunk/samples/customer/customer-client/src/main/
    geronimo/samples/trunk/samples/customer/customer-client/src/main/java/
    geronimo/samples/trunk/samples/customer/customer-client/src/main/java/com/
    geronimo/samples/trunk/samples/customer/customer-client/src/main/java/com/service/
    geronimo/samples/trunk/samples/customer/customer-client/src/main/java/com/service/customer/
    geronimo/samples/trunk/samples/customer/customer-client/src/main/java/com/service/customer/client/
    geronimo/samples/trunk/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java
  (with props)
    geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java
  (with props)
Modified:
    geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionBean.java
    geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionLocal.java
    geronimo/samples/branches/2.1/samples/customer/pom.xml
    geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionBean.java
    geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionLocal.java
    geronimo/samples/trunk/samples/customer/pom.xml

Added: geronimo/samples/branches/2.1/samples/customer/customer-client/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/customer/customer-client/pom.xml?rev=678892&view=auto
==============================================================================
--- geronimo/samples/branches/2.1/samples/customer/customer-client/pom.xml (added)
+++ geronimo/samples/branches/2.1/samples/customer/customer-client/pom.xml Tue Jul 22 13:46:29
2008
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project 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>customer</artifactId>
+        <version>2.1.2-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>customer-client</artifactId>
+    <name>Geronimo Samples :: customer :: CLIENT</name>
+    <packaging>jar</packaging>
+
+    <description>Geronimo Samples. Customer Client Module</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.openejb</groupId>
+            <artifactId>openejb-client</artifactId>
+            <version>3.0</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>customer-ejb</artifactId>
+            <version>${version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-jpa_3.0_spec</artifactId>
+            <version>1.1.1</version>
+        </dependency>
+    </dependencies>
+
+</project>

Propchange: geronimo/samples/branches/2.1/samples/customer/customer-client/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/2.1/samples/customer/customer-client/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/2.1/samples/customer/customer-client/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/branches/2.1/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java?rev=678892&view=auto
==============================================================================
--- geronimo/samples/branches/2.1/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java
(added)
+++ geronimo/samples/branches/2.1/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java
Tue Jul 22 13:46:29 2008
@@ -0,0 +1,57 @@
+/**
+ *  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 com.service.customer.client;
+
+import java.util.List;
+import javax.naming.InitialContext;
+import java.util.Properties;
+import javax.naming.Context;
+
+import com.service.customer.ejb.CustomerInfo;
+import com.service.customer.ejb.ProcessCustomerSessionRemote;
+
+public class CustomerServiceClient {
+
+    public static void main(String[] args) {
+        Properties p = new Properties();
+        p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.RemoteInitialContextFactory");
+        p.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201");
+        try {
+            Context ic = new InitialContext(p);
+            
+            ProcessCustomerSessionRemote processCustomer = (ProcessCustomerSessionRemote)
ic.lookup("ProcessCustomerSessionBeanRemote");
+            List<CustomerInfo> customerList = null;
+            customerList = processCustomer.findAllCustomers();
+            if ( customerList == null || customerList.size() == 0) {
+                System.out.println("No customer information is available");
+            } else {
+                System.out.println("-----------------------------------------------------------");
+                System.out.println("Customer ID \tFull Name \tEmail Address \tInterests");
+                for (int i = 0; i < customerList.size(); i ++) {
+                    CustomerInfo customer = (CustomerInfo) customerList.get(i);
+                    System.out.println(customer.getCustomerId() + " \t" + customer.getFullName()

+                            + " \t" + customer.getEmailAddress() + " \t" + customer.getInterests());
+                }
+                System.out.println("--------------------------------------------------------------");
+            }
+
+            } catch (Exception e) {
+                e.printStackTrace();
+            }
+    }
+}

Propchange: geronimo/samples/branches/2.1/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/2.1/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/2.1/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionBean.java
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionBean.java?rev=678892&r1=678891&r2=678892&view=diff
==============================================================================
--- geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionBean.java
(original)
+++ geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionBean.java
Tue Jul 22 13:46:29 2008
@@ -19,13 +19,17 @@
 
 import java.util.List;
 
+import javax.ejb.Local;
+import javax.ejb.Remote;
 import javax.ejb.Stateless;
 import javax.persistence.EntityManager;
 import javax.persistence.PersistenceContext;
 import javax.persistence.Query;
 
 @Stateless
-public class ProcessCustomerSessionBean implements ProcessCustomerSessionLocal {
+@Local(ProcessCustomerSessionLocal.class)
+@Remote(ProcessCustomerSessionRemote.class)
+public class ProcessCustomerSessionBean {
     @PersistenceContext
     protected EntityManager em;
 

Modified: geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionLocal.java
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionLocal.java?rev=678892&r1=678891&r2=678892&view=diff
==============================================================================
--- geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionLocal.java
(original)
+++ geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionLocal.java
Tue Jul 22 13:46:29 2008
@@ -16,7 +16,9 @@
  */
 
 package com.service.customer.ejb;
+import javax.ejb.Local;
 
+@Local
 public interface ProcessCustomerSessionLocal {
     public java.util.List<CustomerInfo> findAllCustomers();
 

Added: geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java?rev=678892&view=auto
==============================================================================
--- geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java
(added)
+++ geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java
Tue Jul 22 13:46:29 2008
@@ -0,0 +1,27 @@
+/**
+ *  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 com.service.customer.ejb;
+
+import javax.ejb.Remote;
+
+@Remote
+public interface ProcessCustomerSessionRemote {
+    public java.util.List<CustomerInfo> findAllCustomers();
+
+    public CustomerInfo findCustomer(String key);
+}

Propchange: geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/2.1/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/samples/branches/2.1/samples/customer/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/customer/pom.xml?rev=678892&r1=678891&r2=678892&view=diff
==============================================================================
--- geronimo/samples/branches/2.1/samples/customer/pom.xml (original)
+++ geronimo/samples/branches/2.1/samples/customer/pom.xml Tue Jul 22 13:46:29 2008
@@ -44,6 +44,7 @@
         <module>customer-ear</module>
         <module>customer-jetty</module>
         <module>customer-tomcat</module>
+        <module>customer-client</module>
     </modules>
 
     <dependencies>

Added: geronimo/samples/trunk/samples/customer/customer-client/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/customer/customer-client/pom.xml?rev=678892&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/customer/customer-client/pom.xml (added)
+++ geronimo/samples/trunk/samples/customer/customer-client/pom.xml Tue Jul 22 13:46:29 2008
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project 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>customer</artifactId>
+        <version>2.1.2-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>customer-client</artifactId>
+    <name>Geronimo Samples :: customer :: CLIENT</name>
+    <packaging>jar</packaging>
+
+    <description>Geronimo Samples. Customer Client Module</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.openejb</groupId>
+            <artifactId>openejb-client</artifactId>
+            <version>3.0</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>customer-ejb</artifactId>
+            <version>${version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-jpa_3.0_spec</artifactId>
+            <version>1.1.1</version>
+        </dependency>
+    </dependencies>
+
+</project>

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

Propchange: geronimo/samples/trunk/samples/customer/customer-client/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/customer/customer-client/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java?rev=678892&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java
(added)
+++ geronimo/samples/trunk/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java
Tue Jul 22 13:46:29 2008
@@ -0,0 +1,57 @@
+/**
+ *  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 com.service.customer.client;
+
+import java.util.List;
+import javax.naming.InitialContext;
+import java.util.Properties;
+import javax.naming.Context;
+
+import com.service.customer.ejb.CustomerInfo;
+import com.service.customer.ejb.ProcessCustomerSessionRemote;
+
+public class CustomerServiceClient {
+
+    public static void main(String[] args) {
+        Properties p = new Properties();
+        p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.RemoteInitialContextFactory");
+        p.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201");
+        try {
+            Context ic = new InitialContext(p);
+            
+            ProcessCustomerSessionRemote processCustomer = (ProcessCustomerSessionRemote)
ic.lookup("ProcessCustomerSessionBeanRemote");
+            List<CustomerInfo> customerList = null;
+            customerList = processCustomer.findAllCustomers();
+            if ( customerList == null || customerList.size() == 0) {
+                System.out.println("No customer information is available");
+            } else {
+                System.out.println("-----------------------------------------------------------");
+                System.out.println("Customer ID \tFull Name \tEmail Address \tInterests");
+                for (int i = 0; i < customerList.size(); i ++) {
+                    CustomerInfo customer = (CustomerInfo) customerList.get(i);
+                    System.out.println(customer.getCustomerId() + " \t" + customer.getFullName()

+                            + " \t" + customer.getEmailAddress() + " \t" + customer.getInterests());
+                }
+                System.out.println("--------------------------------------------------------------");
+            }
+
+            } catch (Exception e) {
+                e.printStackTrace();
+            }
+    }
+}

Propchange: geronimo/samples/trunk/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/customer/customer-client/src/main/java/com/service/customer/client/CustomerServiceClient.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionBean.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionBean.java?rev=678892&r1=678891&r2=678892&view=diff
==============================================================================
--- geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionBean.java
(original)
+++ geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionBean.java
Tue Jul 22 13:46:29 2008
@@ -19,13 +19,17 @@
 
 import java.util.List;
 
+import javax.ejb.Local;
+import javax.ejb.Remote;
 import javax.ejb.Stateless;
 import javax.persistence.EntityManager;
 import javax.persistence.PersistenceContext;
 import javax.persistence.Query;
 
 @Stateless
-public class ProcessCustomerSessionBean implements ProcessCustomerSessionLocal {
+@Local(ProcessCustomerSessionLocal.class)
+@Remote(ProcessCustomerSessionRemote.class)
+public class ProcessCustomerSessionBean {
     @PersistenceContext
     protected EntityManager em;
 

Modified: geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionLocal.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionLocal.java?rev=678892&r1=678891&r2=678892&view=diff
==============================================================================
--- geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionLocal.java
(original)
+++ geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionLocal.java
Tue Jul 22 13:46:29 2008
@@ -16,7 +16,9 @@
  */
 
 package com.service.customer.ejb;
+import javax.ejb.Local;
 
+@Local
 public interface ProcessCustomerSessionLocal {
     public java.util.List<CustomerInfo> findAllCustomers();
 

Added: geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java?rev=678892&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java
(added)
+++ geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java
Tue Jul 22 13:46:29 2008
@@ -0,0 +1,27 @@
+/**
+ *  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 com.service.customer.ejb;
+
+import javax.ejb.Remote;
+
+@Remote
+public interface ProcessCustomerSessionRemote {
+    public java.util.List<CustomerInfo> findAllCustomers();
+
+    public CustomerInfo findCustomer(String key);
+}

Propchange: geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/customer/customer-ejb/src/main/java/com/service/customer/ejb/ProcessCustomerSessionRemote.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/samples/trunk/samples/customer/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/customer/pom.xml?rev=678892&r1=678891&r2=678892&view=diff
==============================================================================
--- geronimo/samples/trunk/samples/customer/pom.xml (original)
+++ geronimo/samples/trunk/samples/customer/pom.xml Tue Jul 22 13:46:29 2008
@@ -44,6 +44,7 @@
         <module>customer-ear</module>
         <module>customer-jetty</module>
         <module>customer-tomcat</module>
+        <module>customer-client</module>
     </modules>
 
     <dependencies>



Mime
View raw message