axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r565239 [5/5] - in /webservices/axis2/trunk/java: ./ modules/distribution/ modules/distribution/src/main/assembly/ modules/kernel/conf/ modules/rmi/ modules/rmi/src/ modules/rmi/src/org/ modules/rmi/src/org/apache/ modules/rmi/src/org/apach...
Date Mon, 13 Aug 2007 05:06:04 GMT
Added: webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/metadata/service/exception/Exception3.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/metadata/service/exception/Exception3.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/metadata/service/exception/Exception3.java (added)
+++ webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/metadata/service/exception/Exception3.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.rmi.metadata.service.exception;
+
+
+public class Exception3 extends Exception {
+
+    public Exception3() {
+    }
+
+    public Exception3(String message) {
+        super(message);
+    }
+
+    public Exception3(Throwable cause) {
+        super(cause);
+    }
+
+    public Exception3(String message, Throwable cause) {
+        super(message, cause);
+    }
+}

Added: webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/metadata/service/exception/Exception4.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/metadata/service/exception/Exception4.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/metadata/service/exception/Exception4.java (added)
+++ webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/metadata/service/exception/Exception4.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.rmi.metadata.service.exception;
+
+
+public class Exception4 extends Exception {
+
+    public Exception4() {
+    }
+
+    public Exception4(String message) {
+        super(message);
+    }
+
+    public Exception4(Throwable cause) {
+        super(cause);
+    }
+
+    public Exception4(String message, Throwable cause) {
+        super(message, cause);
+    }
+}

Added: webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/ServerTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/ServerTest.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/ServerTest.java (added)
+++ webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/ServerTest.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,92 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.rmi.server;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.context.ConfigurationContextFactory;
+import org.apache.axis2.rmi.Configurator;
+import org.apache.axis2.rmi.deploy.ClassDeployer;
+import org.apache.axis2.rmi.exception.MetaDataPopulateException;
+import org.apache.axis2.rmi.exception.SchemaGenerationException;
+import org.apache.axis2.rmi.metadata.Service;
+import org.apache.axis2.rmi.server.services.Service1;
+import org.apache.axis2.transport.http.SimpleHTTPServer;
+
+import javax.wsdl.Definition;
+import javax.wsdl.WSDLException;
+import javax.wsdl.factory.WSDLFactory;
+import javax.wsdl.xml.WSDLWriter;
+import java.io.FileWriter;
+import java.io.IOException;
+
+
+public class ServerTest {
+
+    public static final String AXIS2_CONFIG_FILE = "conf/axis2.xml";
+    public static final String AXIS2_REPOSITORY_LOCATION = "repository";
+
+    public void deployAndStartService() {
+        try {
+            ConfigurationContext confContext =
+                    ConfigurationContextFactory.createConfigurationContextFromFileSystem(
+                            AXIS2_REPOSITORY_LOCATION, AXIS2_CONFIG_FILE);
+            // add the service
+//            ClassDeployer classDeployer = new ClassDeployer(confContext);
+//            classDeployer.deployClass(Service1.class);
+
+            SimpleHTTPServer simpleHttpServer = new SimpleHTTPServer(confContext, 5555);
+            simpleHttpServer.start();
+
+            System.out.println("Server started on port 5555 ");
+            try {
+                Thread.sleep(2000);
+            } catch (InterruptedException e) {
+            }
+        } catch (AxisFault axisFault) {
+            axisFault.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
+        }
+    }
+
+    private void testWSDL() {
+        Configurator configurator = new Configurator();
+        Service service = new Service(Service1.class, configurator);
+        try {
+            service.populateMetaData();
+            service.generateWSDL();
+            Definition definition = service.getWsdlDefinition();
+
+            WSDLWriter wsdlWriter = WSDLFactory.newInstance().newWSDLWriter();
+            FileWriter fileWriter = new FileWriter("test.wsdl");
+            wsdlWriter.writeWSDL(definition, fileWriter);
+
+        } catch (MetaDataPopulateException e) {
+            e.printStackTrace();
+        } catch (SchemaGenerationException e) {
+            e.printStackTrace();
+        } catch (WSDLException e) {
+            e.printStackTrace();
+        } catch (IOException e) {
+            e.printStackTrace();
+        }
+    }
+
+
+    public static void main(String[] args) {
+        new ServerTest().deployAndStartService();
+//        new ServerTest().testWSDL();
+    }
+}

Added: webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/services/Service1.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/services/Service1.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/services/Service1.java (added)
+++ webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/services/Service1.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.rmi.server.services;
+
+
+public class Service1 {
+
+    public String method1(String param1) {
+        return param1;
+    }
+
+    public String[] method2(String[] param1) {
+        return param1;
+    }
+
+    public int mehtod3(int param1) {
+        return param1;
+    }
+
+    public int[] mehtod4(int[] param1) {
+        return param1;
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/samples/rmi/.build.xml.swp
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/.build.xml.swp?view=auto&rev=565239
==============================================================================
Binary file - no diff available.

Propchange: webservices/axis2/trunk/java/modules/samples/rmi/.build.xml.swp
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: webservices/axis2/trunk/java/modules/samples/rmi/README.txt
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/README.txt?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/README.txt (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/README.txt Sun Aug 12 22:05:58 2007
@@ -0,0 +1,5 @@
+To run this sample follow theses steps
+1. run generate_service ant task. (ant generate_service)
+   this generates the service and put it to the rmiservice folder under repository
+2. start the axis2 server 
+3. run the client (ant run_client)

Added: webservices/axis2/trunk/java/modules/samples/rmi/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/build.xml?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/build.xml (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/build.xml Sun Aug 12 22:05:58 2007
@@ -0,0 +1,96 @@
+<project name="sample_service" default="generate_service" basedir=".">
+
+    <target name="init">
+        <property name="sample_home" value="${basedir}"/>
+        <property name="classes_dir" value="${sample_home}/classes"/>
+        <property name="src_dir" value="${sample_home}/src"/>
+        <property name="axis2.home" value="../../" />
+        <property name="lib_dir" value="${axis2.home}/lib"/>
+        <property name="dist_dir" value="${axis2.home}/dist"/>
+        <property name="deploy_dir" value="${sample_home}/deploy"/>
+        <property name="service_file" value="${axis2.home}/repository/rmiservices/rmiservice.rsa"/>
+
+        <path id="client.class.path">
+            <fileset dir="${axis2.home}/lib">
+                <include name="*.jar"/>
+            </fileset>
+            <fileset dir="${dist_dir}">
+                <include name="*.jar"/>
+            </fileset>
+
+        </path>
+
+
+    </target>
+
+    <target name="generate_service" depends="clean" description="Generating the service aar">
+
+        <echo message="creating the service aar from ${sample_home}"/>
+
+        <!-- creates deploy and class directoris -->
+        <mkdir dir="${deploy_dir}"/>
+        <mkdir dir="${deploy_dir}/META-INF"/>
+
+        <!-- compiling the classes -->
+        <javac  destdir="${deploy_dir}" srcdir="${src_dir}" debug="on">
+            <exclude name="**/client/*"/>
+            <classpath>
+                <fileset dir="${lib_dir}" includes="*.jar"/>
+            </classpath>
+        </javac>
+
+        <!-- copy services file -->
+        <copy file="conf/config.xml" todir="${deploy_dir}/META-INF"/>
+
+        <!-- create BasicServiceTest.aar file -->
+        <jar destfile="${service_file}">
+            <zipfileset dir="${deploy_dir}" prefix=""/>
+        </jar>
+
+    </target>
+
+    <target name="run_client" depends="clean" description="Running the clients">
+
+        <echo message="Running the RMI clients"/>
+
+        <!-- creates deploy and class directoris -->
+        <mkdir dir="${classes_dir}"/>
+        <mkdir dir="${dist_dir}"/>
+
+        <!-- compiling the classes -->
+        <javac  destdir="${classes_dir}" srcdir="${src_dir}" debug="on">
+            <classpath>
+                <fileset dir="${lib_dir}" includes="*.jar"/>
+            </classpath>
+        </javac>
+
+        <jar destfile="${dist_dir}/rmi_client.jar">
+            <zipfileset dir="${classes_dir}" prefix=""/>
+        </jar>
+
+        <!-- running the clients -->
+        <java classname="sample.rmi.client.TestService1">
+             <classpath refid="client.class.path"/>
+        </java>
+        <java classname="sample.rmi.client.TestService2">
+             <classpath refid="client.class.path"/>
+        </java>
+        <java classname="sample.rmi.client.TestService3">
+             <classpath refid="client.class.path"/>
+        </java>
+        <java classname="sample.rmi.client.TestService4">
+             <classpath refid="client.class.path"/>
+        </java>
+
+    </target>
+
+
+
+    <target name="clean" depends="init" description="deletes the old contentst">
+        <!--<delete dir="${classes_dir}"/>-->
+        <delete dir="${deploy_dir}"/>
+        <delete dir="${classes_dir}"/>
+        <delete dir="${dist_dir}"/>
+    </target>
+
+</project>
\ No newline at end of file

Added: webservices/axis2/trunk/java/modules/samples/rmi/conf/config.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/conf/config.xml?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/conf/config.xml (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/conf/config.xml Sun Aug 12 22:05:58 2007
@@ -0,0 +1,33 @@
+<config xmlns="http://ws.apache.org/axis2/rmi">
+    <extensionClasses>
+        <extensionClass>sample.rmi.server.dto.ChildClass</extensionClass>
+    </extensionClasses>
+    <packageToNamespaceMapings>
+        <packageToNamespaceMap>
+            <namespace>http://sample/service</namespace>
+            <packageName>sample.rmi.server</packageName>
+        </packageToNamespaceMap>
+        <packageToNamespaceMap>
+            <namespace>http://sample/service/types</namespace>
+            <packageName>sample.rmi.server.dto</packageName>
+        </packageToNamespaceMap>
+        <packageToNamespaceMap>
+            <namespace>http://sample/service/exception</namespace>
+            <packageName>sample.rmi.server.exception</packageName>
+        </packageToNamespaceMap>
+    </packageToNamespaceMapings>
+    <services>
+        <service>
+            <serviceClass>sample.rmi.server.Service1</serviceClass>
+        </service>
+        <service>
+            <serviceClass>sample.rmi.server.Service2</serviceClass>
+        </service>
+        <service>
+            <serviceClass>sample.rmi.server.Service3</serviceClass>
+        </service>
+        <service>
+            <serviceClass>sample.rmi.server.Service4</serviceClass>
+        </service>
+    </services>
+</config>
\ No newline at end of file

Added: webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService1.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService1.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService1.java (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService1.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,69 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package sample.rmi.client;
+
+import org.apache.axis2.rmi.Configurator;
+import org.apache.axis2.rmi.client.RMIClient;
+import sample.rmi.server.Service1;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+public class TestService1 {
+
+    private Configurator configurator;
+
+    public TestService1() {
+        this.configurator = new Configurator();
+        this.configurator.addPackageToNamespaceMaping("sample.rmi.server", "http://sample/service");
+        this.configurator.addPackageToNamespaceMaping("sample.rmi.server.dto", "http://sample/service/types");
+        this.configurator.addPackageToNamespaceMaping("sample.rmi.server.exception", "http://sample/service/exception");
+    }
+
+    public void testMethod1() {
+        try {
+            RMIClient rmiClient = new RMIClient(Service1.class, this.configurator, "http://localhost:8080/axis2/services/Service1");
+            List inputObjects = new ArrayList();
+            inputObjects.add("Hellow");
+            inputObjects.add(" World");
+            String result = (String) rmiClient.invokeMethod("method1", inputObjects);
+            System.out.println("Result ==> " + result);
+        } catch (Exception e) {
+            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
+        }
+    }
+
+    public void testMethod2() {
+
+        try {
+            RMIClient rmiClient = new RMIClient(Service1.class, configurator, "http://localhost:8080/axis2/services/Service1");
+            List inputObjects = new ArrayList();
+            inputObjects.add(new Integer(5));
+            inputObjects.add(new Integer(15));
+            Integer result = (Integer) rmiClient.invokeMethod("method2", inputObjects);
+            System.out.println("Result ==> " + result);
+        } catch (Exception e) {
+            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
+        }
+    }
+
+    public static void main(String[] args) {
+        TestService1 testService1 = new TestService1();
+        testService1.testMethod1();
+        testService1.testMethod2();
+    }
+}

Added: webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService2.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService2.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService2.java (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService2.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,107 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package sample.rmi.client;
+
+import org.apache.axis2.rmi.Configurator;
+import org.apache.axis2.rmi.client.RMIClient;
+import sample.rmi.server.Service2;
+import sample.rmi.server.dto.ChildClass;
+import sample.rmi.server.dto.ParentClass;
+import sample.rmi.server.dto.TestClass1;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class TestService2 {
+
+    private Configurator configurator;
+
+    public TestService2() {
+        this.configurator = new Configurator();
+        this.configurator.addPackageToNamespaceMaping("sample.rmi.server", "http://sample/service");
+        this.configurator.addPackageToNamespaceMaping("sample.rmi.server.dto", "http://sample/service/types");
+        this.configurator.addPackageToNamespaceMaping("sample.rmi.server.exception", "http://sample/service/exception");
+        this.configurator.addExtension(ParentClass.class);
+        this.configurator.addExtension(ChildClass.class);
+    }
+
+    public void testMethod11() {
+
+        try {
+            RMIClient rmiClient = new RMIClient(Service2.class, configurator, "http://localhost:8080/axis2/services/Service2");
+            List inputObjects = new ArrayList();
+
+            ParentClass parentClass = new ParentClass();
+            parentClass.setParam1("test param1");
+            parentClass.setParam2(10);
+            inputObjects.add(parentClass);
+            ParentClass result = (ParentClass) rmiClient.invokeMethod("method1", inputObjects);
+            System.out.println("Result param 1 ==> " + result.getParam1());
+            System.out.println("Result param 2 ==> " + result.getParam2());
+        } catch (Exception e) {
+            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
+        }
+    }
+
+    public void testMethod12() {
+
+        try {
+            RMIClient rmiClient = new RMIClient(Service2.class, configurator, "http://localhost:8080/axis2/services/Service2");
+            List inputObjects = new ArrayList();
+
+            ChildClass childClass = new ChildClass();
+            childClass.setParam1("test param1");
+            childClass.setParam2(10);
+            childClass.setParam3("test param3");
+            childClass.setParam4(new Integer(12));
+            inputObjects.add(childClass);
+            ChildClass result = (ChildClass) rmiClient.invokeMethod("method1", inputObjects);
+            System.out.println("Result param 1 ==> " + result.getParam1());
+            System.out.println("Result param 2 ==> " + result.getParam2());
+            System.out.println("Result param 3 ==> " + result.getParam3());
+            System.out.println("Result param 4 ==> " + result.getParam4());
+
+        } catch (Exception e) {
+            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
+        }
+    }
+
+    public void testMethod2() {
+
+        try {
+            RMIClient rmiClient = new RMIClient(Service2.class, configurator, "http://localhost:8080/axis2/services/Service2");
+            List inputObjects = new ArrayList();
+
+            TestClass1 testClass1 = new TestClass1();
+            testClass1.setParam1("test param1");
+            testClass1.setParma2("test param2");
+            inputObjects.add(testClass1);
+            TestClass1 result = (TestClass1) rmiClient.invokeMethod("method2", inputObjects);
+            System.out.println("Result param 1 ==> " + result.getParam1());
+            System.out.println("Result param 2 ==> " + result.getParma2());
+        } catch (Exception e) {
+            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
+        }
+    }
+
+    public static void main(String[] args) {
+        TestService2 testService2 = new TestService2();
+        testService2.testMethod11();
+        testService2.testMethod12();
+        testService2.testMethod2();
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService3.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService3.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService3.java (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService3.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,93 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package sample.rmi.client;
+
+import sample.rmi.server.Service3;
+import sample.rmi.server.exception.Exception1;
+import sample.rmi.server.exception.Exception2;
+import sample.rmi.server.exception.Exception3;
+import org.apache.axis2.rmi.Configurator;
+import org.apache.axis2.rmi.client.RMIClient;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+public class TestService3 {
+
+    private Configurator configurator;
+
+    public TestService3() {
+        this.configurator = new Configurator();
+        this.configurator.addPackageToNamespaceMaping("sample.rmi.server", "http://sample/service");
+        this.configurator.addPackageToNamespaceMaping("sample.rmi.server.dto", "http://sample/service/types");
+        this.configurator.addPackageToNamespaceMaping("sample.rmi.server.exception", "http://sample/service/exception");
+    }
+
+    public void testMethod1() {
+
+        try {
+            RMIClient rmiClient = new RMIClient(Service3.class, configurator, "http://localhost:8080/axis2/services/Service3");
+            List inputObjects = new ArrayList();
+            rmiClient.invokeMethod("method1", inputObjects);
+        } catch (Exception e) {
+            if (e instanceof Exception1) {
+                System.out.println("Got the exception 1");
+            } else {
+                e.printStackTrace();
+            }
+        }
+    }
+
+    public void testMethod2() {
+
+        try {
+            RMIClient rmiClient = new RMIClient(Service3.class, configurator, "http://localhost:8080/axis2/services/Service3");
+            List inputObjects = new ArrayList();
+            inputObjects.add("test string");
+            rmiClient.invokeMethod("method2", inputObjects);
+        } catch (Exception e) {
+            if (e instanceof Exception2) {
+                System.out.println("Got the exception 2");
+            } else {
+                e.printStackTrace();
+            }
+        }
+    }
+
+    public void testMethod3() {
+
+        try {
+            RMIClient rmiClient = new RMIClient(Service3.class, configurator, "http://localhost:8080/axis2/services/Service3");
+            List inputObjects = new ArrayList();
+            inputObjects.add(new Integer(5));
+            rmiClient.invokeMethod("method3", inputObjects);
+        } catch (Exception e) {
+            if (e instanceof Exception3) {
+                System.out.println("Got the exception 3");
+            } else {
+                e.printStackTrace();
+            }
+        }
+    }
+
+    public static void main(String[] args) {
+        TestService3 testService3 = new TestService3();
+        testService3.testMethod1();
+        testService3.testMethod2();
+        testService3.testMethod3();
+    }
+}

Added: webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService4.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService4.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService4.java (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/client/TestService4.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,142 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package sample.rmi.client;
+
+import sample.rmi.server.Service4;
+import sample.rmi.server.dto.ChildClass;
+import sample.rmi.server.dto.ParentClass;
+import org.apache.axis2.rmi.Configurator;
+import org.apache.axis2.rmi.client.RMIClient;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+public class TestService4 {
+
+    private Configurator configurator;
+
+    public TestService4() {
+
+        this.configurator = new Configurator();
+        this.configurator.addPackageToNamespaceMaping("sample.rmi.server", "http://sample/service");
+        this.configurator.addPackageToNamespaceMaping("sample.rmi.server.dto", "http://sample/service/types");
+        this.configurator.addExtension(ParentClass.class);
+        this.configurator.addExtension(ChildClass.class);
+    }
+
+    public void testMethod11() {
+
+        try {
+            RMIClient rmiClient = new RMIClient(Service4.class, this.configurator, "http://localhost:8080/axis2/services/Service4");
+            List inputObjects = new ArrayList();
+            inputObjects.add(null);
+            Object result = rmiClient.invokeMethod("method1", inputObjects);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+
+        try {
+            RMIClient rmiClient = new RMIClient(Service4.class, this.configurator, "http://localhost:8080/axis2/services/Service4");
+            List inputObjects = new ArrayList();
+            Object result = rmiClient.invokeMethod("method1", inputObjects);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    public void testMethod12() {
+
+        try {
+            RMIClient rmiClient = new RMIClient(Service4.class, this.configurator, "http://localhost:8080/axis2/services/Service4");
+            List inputObjects = new ArrayList();
+            inputObjects.add("test string");
+            Object result = rmiClient.invokeMethod("method1", inputObjects);
+            System.out.println("Got the string " + result);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    public void testMethod13() {
+
+        try {
+            RMIClient rmiClient = new RMIClient(Service4.class, this.configurator, "http://localhost:8080/axis2/services/Service4");
+            List inputObjects = new ArrayList();
+            ParentClass parentClass = new ParentClass();
+            parentClass.setParam1("test string");
+            parentClass.setParam2(3);
+            inputObjects.add(parentClass);
+            ParentClass result = (ParentClass) rmiClient.invokeMethod("method1", inputObjects);
+            System.out.println("Param 1 ==>" + result.getParam1());
+            System.out.println("Param 2 ==>" + result.getParam2());
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    public void testMethod3() {
+        try {
+            RMIClient rmiClient = new RMIClient(Service4.class, this.configurator, "http://localhost:8080/axis2/services/Service4");
+            List inputObjects = new ArrayList();
+            inputObjects.add("Param1");
+            inputObjects.add("Param2");
+            inputObjects.add("Param3");
+            String[] result = (String[]) rmiClient.invokeMethod("method3", inputObjects);
+            System.out.println("Object 1 ==>" + result[0]);
+            System.out.println("Object 2 ==>" + result[1]);
+            System.out.println("Object 3 ==>" + result[2]);
+
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    public void testMethod2() {
+        try {
+            RMIClient rmiClient = new RMIClient(Service4.class, this.configurator, "http://localhost:8080/axis2/services/Service4");
+            List inputObjects = new ArrayList();
+
+            List param1 = new ArrayList();
+            param1.add(new ChildClass());
+            param1.add(new Integer(2));
+
+            List param2 = new ArrayList();
+            param2.add(new ParentClass());
+            param2.add(new Float(2.34f));
+
+            inputObjects.add(param1);
+            inputObjects.add(param2);
+
+            List result = (List) rmiClient.invokeMethod("method2", inputObjects);
+            System.out.println("Object 1 ==>" + result.get(1));
+            System.out.println("Object 3 ==>" + result.get(3));
+
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    public static void main(String[] args) {
+
+        TestService4 testService4 = new TestService4();
+        testService4.testMethod11();
+        testService4.testMethod12();
+        testService4.testMethod13();
+        testService4.testMethod2();
+        testService4.testMethod3();
+    }
+}

Added: webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service1.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service1.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service1.java (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service1.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package sample.rmi.server;
+
+public class Service1 {
+
+    public String method1(String param1, String param2){
+        return param1 + param2;
+    }
+
+    public int method2(int param1, int param2){
+        return param1 + param2;
+    }
+}

Added: webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service2.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service2.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service2.java (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service2.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package sample.rmi.server;
+
+import sample.rmi.server.dto.ParentClass;
+import sample.rmi.server.dto.TestClass1;
+
+
+public class Service2 {
+    
+    public ParentClass method1(ParentClass param1){
+        return param1;
+    }
+
+    public TestClass1 method2(TestClass1 param1){
+        return param1;
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service3.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service3.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service3.java (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service3.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package sample.rmi.server;
+
+import sample.rmi.server.exception.Exception1;
+import sample.rmi.server.exception.Exception2;
+import sample.rmi.server.exception.Exception3;
+
+public class Service3 {
+
+    public void method1() throws Exception1 {
+        throw new Exception1("Test Exception1");
+    }
+
+    public String method2(String param1) throws Exception2, Exception1 {
+        throw new Exception2("Test Exception2");
+    }
+
+    public int method3(int param1) throws Exception3, Exception2, Exception1 {
+        throw new Exception3("Test Exception3");
+    }
+
+}

Added: webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service4.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service4.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service4.java (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/Service4.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package sample.rmi.server;
+
+import java.util.List;
+
+
+public class Service4 {
+
+    public Object method1(Object param1){
+        return param1;
+    }
+
+    public List method2(List param1, List param2){
+        if (param1 != null){
+            if (param2 != null){
+                param1.addAll(param2);
+                return param1;
+            } else {
+                return param1;
+            }
+        } else {
+            return param2;
+        }
+    }
+
+    public String[] method3(String param1,String param2,String param3){
+        String[] returnArray = new String[3];
+        returnArray[0] = param1;
+        returnArray[1] = param2;
+        returnArray[2] = param3;
+        return returnArray;
+    }
+}

Added: webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/dto/ChildClass.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/dto/ChildClass.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/dto/ChildClass.java (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/dto/ChildClass.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package sample.rmi.server.dto;
+
+
+public class ChildClass extends ParentClass {
+    
+    private String param3;
+    private Integer param4;
+
+    public String getParam3() {
+        return param3;
+    }
+
+    public void setParam3(String param3) {
+        this.param3 = param3;
+    }
+
+    public Integer getParam4() {
+        return param4;
+    }
+
+    public void setParam4(Integer param4) {
+        this.param4 = param4;
+    }
+}

Added: webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/dto/ParentClass.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/dto/ParentClass.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/dto/ParentClass.java (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/dto/ParentClass.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package sample.rmi.server.dto;
+
+public class ParentClass {
+    
+    private String param1;
+    private int param2;
+
+    public String getParam1() {
+        return param1;
+    }
+
+    public void setParam1(String param1) {
+        this.param1 = param1;
+    }
+
+    public int getParam2() {
+        return param2;
+    }
+
+    public void setParam2(int param2) {
+        this.param2 = param2;
+    }
+}

Added: webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/dto/TestClass1.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/dto/TestClass1.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/dto/TestClass1.java (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/dto/TestClass1.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package sample.rmi.server.dto;
+
+
+public class TestClass1 {
+
+    private String param1;
+    private String parma2;
+
+    public String getParam1() {
+        return param1;
+    }
+
+    public void setParam1(String param1) {
+        this.param1 = param1;
+    }
+
+    public String getParma2() {
+        return parma2;
+    }
+
+    public void setParma2(String parma2) {
+        this.parma2 = parma2;
+    }
+}

Added: webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/exception/Exception1.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/exception/Exception1.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/exception/Exception1.java (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/exception/Exception1.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package sample.rmi.server.exception;
+
+
+public class Exception1 extends Exception {
+    
+    public Exception1() {
+    }
+
+    public Exception1(String message) {
+        super(message);
+    }
+
+    public Exception1(Throwable cause) {
+        super(cause);
+    }
+
+    public Exception1(String message, Throwable cause) {
+        super(message, cause);
+    }
+}

Added: webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/exception/Exception2.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/exception/Exception2.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/exception/Exception2.java (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/exception/Exception2.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package sample.rmi.server.exception;
+
+
+public class Exception2 extends Exception {
+    public Exception2() {
+    }
+
+    public Exception2(String message) {
+        super(message);
+    }
+
+    public Exception2(Throwable cause) {
+        super(cause);
+    }
+
+    public Exception2(String message, Throwable cause) {
+        super(message, cause);
+    }
+}

Added: webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/exception/Exception3.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/exception/Exception3.java?view=auto&rev=565239
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/exception/Exception3.java (added)
+++ webservices/axis2/trunk/java/modules/samples/rmi/src/sample/rmi/server/exception/Exception3.java Sun Aug 12 22:05:58 2007
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package sample.rmi.server.exception;
+
+
+public class Exception3 extends Exception {
+    
+    public Exception3() {
+    }
+
+    public Exception3(String message) {
+        super(message);
+    }
+
+    public Exception3(Throwable cause) {
+        super(cause);
+    }
+
+    public Exception3(String message, Throwable cause) {
+        super(message, cause);
+    }
+}

Modified: webservices/axis2/trunk/java/pom.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/pom.xml?view=diff&rev=565239&r1=565238&r2=565239
==============================================================================
--- webservices/axis2/trunk/java/pom.xml (original)
+++ webservices/axis2/trunk/java/pom.xml Sun Aug 12 22:05:58 2007
@@ -59,7 +59,8 @@
 		<module>modules/webapp</module>
 		<module>modules/xmlbeans</module>
 		<module>modules/samples</module>
-	    <module>modules/scripting</module>
+	        <module>modules/scripting</module>
+	        <module>modules/rmi</module>
 	</modules>
  	<profiles>
 	   <profile>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message