You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by mc...@apache.org on 2007/06/22 17:33:14 UTC

svn commit: r549846 [1/2] - in /geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal: ./ corba-marshal-client/ corba-marshal-client/src/ corba-marshal-client/src/main/ corba-marshal-client/src/main/java/ corba-marshal-client/src/main/java/org/...

Author: mcconne
Date: Fri Jun 22 08:33:12 2007
New Revision: 549846

URL: http://svn.apache.org/viewvc?view=rev&rev=549846
Log: (empty)

Added:
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/LICENSE.txt
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/NOTICE.txt
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/pom.xml
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/JavaPrimitives.java
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/JavaStrings.java
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBCallbackHandler.java
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBClient.java
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBHome.java
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBRemote.java
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/resources/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/resources/META-INF/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/resources/META-INF/application-client.xml
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ear/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ear/LICENSE.txt
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ear/NOTICE.txt
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ear/pom.xml
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ear/src/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ear/src/main/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ear/src/main/resources/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ear/src/main/resources/META-INF/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ear/src/main/resources/META-INF/application.xml
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ear/src/main/resources/META-INF/geronimo-application.xml
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/LICENSE.txt
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/NOTICE.txt
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/pom.xml
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/java/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/java/org/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/java/org/apache/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/java/org/apache/geronimo/testsuite/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/java/org/apache/geronimo/testsuite/corba/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/java/org/apache/geronimo/testsuite/corba/marshal/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBHome.java
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBLocal.java
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBLocalHome.java
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBRemote.java
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBSessionBean.java
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/resources/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/resources/META-INF/
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-ejb/src/main/resources/META-INF/ejb-jar.xml
    geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/pom.xml

Added: geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/LICENSE.txt
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/LICENSE.txt?view=auto&rev=549846
==============================================================================
--- geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/LICENSE.txt (added)
+++ geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/LICENSE.txt Fri Jun 22 08:33:12 2007
@@ -0,0 +1,203 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   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.
+

Added: geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/NOTICE.txt
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/NOTICE.txt?view=auto&rev=549846
==============================================================================
--- geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/NOTICE.txt (added)
+++ geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/NOTICE.txt Fri Jun 22 08:33:12 2007
@@ -0,0 +1,5 @@
+Apache Geronimo
+Copyright 2006 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).

Added: geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/pom.xml?view=auto&rev=549846
==============================================================================
--- geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/pom.xml (added)
+++ geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/pom.xml Fri Jun 22 08:33:12 2007
@@ -0,0 +1,70 @@
+<?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.
+-->
+
+<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.testsuite</groupId>
+        <artifactId>corba-marshal</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>corba-marshal-client</artifactId>
+    <name>Geronimo TestSuite :: CORBA TestSuite :: Marshal Client</name>
+    <packaging>jar</packaging>
+    <description>Example using CORBA to access a stateless EJB</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>corba-marshal-ejb</artifactId>
+            <version>${version}</version>
+            <type>ejb</type>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-ejb_3.0_spec</artifactId>
+            <version>1.0</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-jar-plugin</artifactId>
+                <configuration>
+                    <description>Geronimo Marshal Enterprise Application CORBA Client JAR</description>
+                    <displayName>Geronimo Marshal Enterprise Application CORBA Client JAR</displayName>
+                    <archive>
+                        <manifest>
+                            <mainClass>org.apache.geronimo.testsuite.corba.marshal.MarshalEJBClient</mainClass>
+                        </manifest>
+                    </archive>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

Added: geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/JavaPrimitives.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/JavaPrimitives.java?view=auto&rev=549846
==============================================================================
--- geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/JavaPrimitives.java (added)
+++ geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/JavaPrimitives.java Fri Jun 22 08:33:12 2007
@@ -0,0 +1,765 @@
+/**
+ * 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.testsuite.corba.marshal;
+
+import java.lang.reflect.Array;
+import java.rmi.RemoteException;
+import java.util.Arrays;
+import java.util.Random;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.rmi.PortableRemoteObject;
+
+public class JavaPrimitives {
+
+    private static final int MAX_CHAR_VALUE=255;    // Use ASCII-1 and ASCII-2 sets only
+    private static int maxArraySize;
+    private static Random random;                   // Pseudo-random number generator
+
+    // Arrays of primitives
+    private static boolean[] booleanArray1;
+    private static byte[] byteArray1;
+    private static char[] charArray1;
+    private static short[] shortArray1;
+    private static int[] intArray1;
+    private static long[] longArray1;
+    private static float[] floatArray1;
+    private static double[] doubleArray1;
+
+    // Two-dimensional arrays of primitives
+    private static boolean[][] boolean2dArray1;
+    private static byte[][] byte2dArray1;
+    private static char[][] char2dArray1;
+    private static short[][] short2dArray1;
+    private static int[][] int2dArray1;
+    private static long[][] long2dArray1;
+    private static float[][] float2dArray1;
+    private static double[][] double2dArray1;
+
+    // Three-dimensional arrays of primitives
+    private static boolean[][][] boolean3dArray1;
+    private static byte[][][] byte3dArray1;
+    private static char[][][] char3dArray1;
+    private static short[][][] short3dArray1;
+    private static int[][][] int3dArray1;
+    private static long[][][] long3dArray1;
+    private static float[][][] float3dArray1;
+    private static double[][][] double3dArray1;
+
+    //
+    // Constructors
+    //
+    public JavaPrimitives(int seed, int size) {
+        random = new Random(seed);                  // Repeatable
+        maxArraySize = size;
+        initArrays();
+    }
+    private JavaPrimitives() {
+        random = new Random();                      // Not as repeatable since timestamp used as seed
+        maxArraySize = 25;
+        initArrays();
+    }
+
+    //
+    // marshal()
+    //
+    public void marshal() throws Exception {
+
+        //
+        // Get access to the MarshalEJB
+        //
+        Context ctx = new InitialContext();
+        Object o = ctx.lookup("java:comp/env/MarshalEJB");
+        MarshalEJBHome marshalEJBHome = (MarshalEJBHome) PortableRemoteObject.narrow(o, MarshalEJBHome.class);
+        MarshalEJBRemote marshalEJBRemote = marshalEJBHome.create();
+
+        //
+        // boolean primitive
+        //
+        System.out.println();
+        boolean boolean1 = random.nextBoolean();
+        boolean boolean2 = random.nextBoolean();
+        try {
+            boolean2 = marshalEJBRemote.marshalBoolean(boolean1);
+            System.out.println("boolean passed to EJB: " + boolean1);
+            if (boolean1!=boolean2) {
+                throw new Exception("boolean test failure: " + boolean1);
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("boolean test RemoteException: " + boolean1 + " " + re);
+        }
+
+        //
+        // boolean array
+        //
+        try {
+            boolean[] booleanArray2 = marshalEJBRemote.marshalBoolean(booleanArray1);
+            System.out.println("boolean array size passed to EJB: " + booleanArray1.length);
+            if (!Arrays.equals(booleanArray1,booleanArray2)) {
+                throw new Exception("boolean array test failure: " + Arrays.toString(booleanArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("boolean array test RemoteException: " + Arrays.toString(booleanArray1) + " " + re);
+        }
+
+        //
+        // boolean two-dimensional array
+        //
+        try {
+            boolean[][] boolean2dArray2 = marshalEJBRemote.marshalBoolean(boolean2dArray1);
+            System.out.println("boolean two-dimensional array size passed to EJB: " + boolean2dArray1.length);
+            if (!Arrays.deepEquals(boolean2dArray1,boolean2dArray2)) {
+                throw new Exception("boolean two-dimensional array test failure: " + Arrays.deepToString(boolean2dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("boolean two-dimensional array test RemoteException: " + Arrays.deepToString(boolean2dArray1) + " " + re);
+        }
+
+        //
+        // boolean three-dimensional array
+        //
+        try {
+            boolean[][][] boolean3dArray2 = marshalEJBRemote.marshalBoolean(boolean3dArray1);
+            System.out.println("boolean three-dimensional array size passed to EJB: " + boolean3dArray1.length);
+            if (!Arrays.deepEquals(boolean3dArray1,boolean3dArray2)) {
+                throw new Exception("boolean three-dimensional array test failure: " + Arrays.deepToString(boolean3dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("boolean three-dimensional array test RemoteException: " + Arrays.deepToString(boolean3dArray1) + " " + re);
+        }
+
+        //
+        // byte primitive
+        //
+        System.out.println();
+        byte byte1 = (byte) random.nextInt();
+        byte byte2 = (byte) random.nextInt();
+        try {
+            byte2 = marshalEJBRemote.marshalByte(byte1);
+            System.out.println("byte passed to EJB: " + byte1);
+            if (byte1!=byte2) {
+                throw new Exception("byte test failure: " + byte1);
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("byte test RemoteException: " + byte1 + " " + re);
+        }
+
+        //
+        // byte array
+        //
+        try {
+            byte[] byteArray2 = marshalEJBRemote.marshalByte(byteArray1);
+            System.out.println("byte array size passed to EJB: " + byteArray1.length);
+            if (!Arrays.equals(byteArray1,byteArray2)) {
+                throw new Exception("byte array test failure: " + Arrays.toString(byteArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("byte array test RemoteException: " + Arrays.toString(byteArray1) + " " + re);
+        }
+
+        //
+        // byte two-dimensional array
+        //
+        try {
+            byte[][] byte2dArray2 = marshalEJBRemote.marshalByte(byte2dArray1);
+            System.out.println("byte two-dimensional array size passed to EJB: " + byte2dArray1.length);
+            if (!Arrays.deepEquals(byte2dArray1,byte2dArray2)) {
+                throw new Exception("byte two-dimensional array test failure: " + Arrays.deepToString(byte2dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("byte two-dimensional array test RemoteException: " + Arrays.deepToString(byte2dArray1) + " " + re);
+        }
+
+        //
+        // byte three-dimensional array
+        //
+        try {
+            byte[][][] byte3dArray2 = marshalEJBRemote.marshalByte(byte3dArray1);
+            System.out.println("byte three-dimensional array size passed to EJB: " + byte3dArray1.length);
+            if (!Arrays.deepEquals(byte3dArray1,byte3dArray2)) {
+                throw new Exception("byte three-dimensional array test failure: " + Arrays.deepToString(byte3dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("byte three-dimensional array test RemoteException: " + Arrays.deepToString(byte3dArray1) + " " + re);
+        }
+
+        //
+        // char primitive
+        //
+        System.out.println();
+        char char1 = (char) random.nextInt(MAX_CHAR_VALUE);
+        char char2 = (char) random.nextInt(MAX_CHAR_VALUE);
+        try {
+            char2 = marshalEJBRemote.marshalChar(char1);
+            System.out.println("char passed to EJB: " + char1 + " (" + (int)char1 + ")" );
+            if (char1!=char2) {
+                throw new Exception("char test failure: " + char1 + " (" + (int)char1 + ")");
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("char test RemoteException: " + char1 + " " + " (" + (int)char2 + ")" + re);
+        }
+
+        //
+        // char array
+        //
+        try {
+            char[] charArray2 = marshalEJBRemote.marshalChar(charArray1);
+            System.out.println("char array size passed to EJB: " + charArray1.length);
+            if (!Arrays.equals(charArray1,charArray2)) {
+                throw new Exception("char array test failure");
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("char array test RemoteException: " + re);
+        }
+
+        //
+        // char two-dimensional array
+        //
+        try {
+            char[][] char2dArray2 = marshalEJBRemote.marshalChar(char2dArray1);
+            System.out.println("char two-dimensional array size passed to EJB: " + char2dArray1.length);
+            if (!Arrays.deepEquals(char2dArray1,char2dArray2)) {
+                throw new Exception("char two-dimensional array test failure: " + Arrays.deepToString(char2dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("char two-dimensional array test RemoteException: " + Arrays.deepToString(char2dArray1) + " " + re);
+        }
+
+        //
+        // char three-dimensional array
+        //
+        try {
+            char[][][] char3dArray2 = marshalEJBRemote.marshalChar(char3dArray1);
+            System.out.println("char three-dimensional array size passed to EJB: " + char3dArray1.length);
+            if (!Arrays.deepEquals(char3dArray1,char3dArray2)) {
+                throw new Exception("char three-dimensional array test failure: " + Arrays.deepToString(char3dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("char three-dimensional array test RemoteException: " + Arrays.deepToString(char3dArray1) + " " + re);
+        }
+
+        //
+        // short primitive
+        //
+        System.out.println();
+        short short1 = (short) random.nextInt();
+        short short2 = (short) random.nextInt();
+        try {
+            short2 = marshalEJBRemote.marshalShort(short1);
+            System.out.println("short passed to EJB: " + short1);
+            if (short1!=short2) {
+                throw new Exception("short test failure: " + short1);
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("short test RemoteException: " + short1 + " " + re);
+        }
+
+        //
+        // short array
+        //
+        try {
+            short[] shortArray2 = marshalEJBRemote.marshalShort(shortArray1);
+            System.out.println("short array size passed to EJB: " + shortArray1.length);
+            if (!Arrays.equals(shortArray1,shortArray2)) {
+                throw new Exception("short array test failure: " + Arrays.toString(shortArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("short array test RemoteException: " + Arrays.toString(shortArray1) + " " + re);
+        }
+
+        //
+        // short two-dimensional array
+        //
+        try {
+            short[][] short2dArray2 = marshalEJBRemote.marshalShort(short2dArray1);
+            System.out.println("short two-dimensional array size passed to EJB: " + short2dArray1.length);
+            if (!Arrays.deepEquals(short2dArray1,short2dArray2)) {
+                throw new Exception("short two-dimensional array test failure: " + Arrays.deepToString(short2dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("short two-dimensional array test RemoteException: " + Arrays.deepToString(short2dArray1) + " " + re);
+        }
+
+        //
+        // short three-dimensional array
+        //
+        try {
+            short[][][] short3dArray2 = marshalEJBRemote.marshalShort(short3dArray1);
+            System.out.println("short three-dimensional array size passed to EJB: " + short3dArray1.length);
+            if (!Arrays.deepEquals(short3dArray1,short3dArray2)) {
+                throw new Exception("short three-dimensional array test failure: " + Arrays.deepToString(short3dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("short three-dimensional array test RemoteException: " + Arrays.deepToString(short3dArray1) + " " + re);
+        }
+
+        //
+        // int primitive
+        //
+        System.out.println();
+        int int1 = random.nextInt();
+        int int2 = random.nextInt();
+        try {
+            int2 = marshalEJBRemote.marshalInt(int1);
+            System.out.println("int passed to EJB: " + int1);
+            if (int1!=int2) {
+                throw new Exception("int test failure: " + int1);
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("int test RemoteException: " + int1 + " " + re);
+        }
+
+        //
+        // int array
+        //
+        try {
+            int[] intArray2 = marshalEJBRemote.marshalInt(intArray1);
+            System.out.println("int array size passed to EJB: " + intArray1.length);
+            if (!Arrays.equals(intArray1,intArray2)) {
+                throw new Exception("int array test failure: " + Arrays.toString(intArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("int array test RemoteException: " + Arrays.toString(intArray1) + " " + re);
+        }
+
+        //
+        // int two-dimensional array
+        //
+        try {
+            int[][] int2dArray2 = marshalEJBRemote.marshalInt(int2dArray1);
+            System.out.println("int two-dimensional array size passed to EJB: " + int2dArray1.length);
+            if (!Arrays.deepEquals(int2dArray1,int2dArray2)) {
+                throw new Exception("int two-dimensional array test failure: " + Arrays.deepToString(int2dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("int two-dimensional array test RemoteException: " + Arrays.deepToString(int2dArray1) + " " + re);
+        }
+
+        //
+        // int three-dimensional array
+        //
+        try {
+            int[][][] int3dArray2 = marshalEJBRemote.marshalInt(int3dArray1);
+            System.out.println("int three-dimensional array size passed to EJB: " + int3dArray1.length);
+            if (!Arrays.deepEquals(int3dArray1,int3dArray2)) {
+                throw new Exception("int three-dimensional array test failure: " + Arrays.deepToString(int3dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("int three-dimensional array test RemoteException: " + Arrays.deepToString(int3dArray1) + " " + re);
+        }
+
+        //
+        // long primitive
+        //
+        System.out.println();
+        long long1 = random.nextLong();
+        long long2 = random.nextLong();
+        try {
+            long2 = marshalEJBRemote.marshalLong(long1);
+            System.out.println("long passed to EJB: " + long1);
+            if (long1!=long2) {
+                throw new Exception("long test failure: " + long1);
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("long test RemoteException: " + long1 + " " + re);
+        }
+
+        //
+        // long array
+        //
+        try {
+            long[] longArray2 = marshalEJBRemote.marshalLong(longArray1);
+            System.out.println("long array size passed to EJB: " + longArray1.length);
+            if (!Arrays.equals(longArray1,longArray2)) {
+                throw new Exception("long array test failure: " + Arrays.toString(longArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("long array test RemoteException: " + Arrays.toString(longArray1) + " " + re);
+        }
+
+        //
+        // long two-dimensional array
+        //
+        try {
+            long[][] long2dArray2 = marshalEJBRemote.marshalLong(long2dArray1);
+            System.out.println("long two-dimensional array size passed to EJB: " + long2dArray1.length);
+            if (!Arrays.deepEquals(long2dArray1,long2dArray2)) {
+                throw new Exception("long two-dimensional array test failure: " + Arrays.deepToString(long2dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("long two-dimensional array test RemoteException: " + Arrays.deepToString(long2dArray1) + " " + re);
+        }
+
+        //
+        // long three-dimensional array
+        //
+        try {
+            long[][][] long3dArray2 = marshalEJBRemote.marshalLong(long3dArray1);
+            System.out.println("long three-dimensional array size passed to EJB: " + long3dArray1.length);
+            if (!Arrays.deepEquals(long3dArray1,long3dArray2)) {
+                throw new Exception("long three-dimensional array test failure: " + Arrays.deepToString(long3dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("long three-dimensional array test RemoteException: " + Arrays.deepToString(long3dArray1) + " " + re);
+        }
+
+        //
+        // float primitive
+        //
+        System.out.println();
+        float float1 = random.nextFloat();
+        float float2 = random.nextFloat();
+        try {
+            float2 = marshalEJBRemote.marshalFloat(float1);
+            System.out.println("float passed to EJB: " + float1);
+            if (float1!=float2) {
+                throw new Exception("float test failure: " + float1);
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("float test RemoteException: " + float1 + " " + re);
+        }
+
+        //
+        // float array
+        //
+        try {
+            float[] floatArray2 = marshalEJBRemote.marshalFloat(floatArray1);
+            System.out.println("float array size passed to EJB: " + floatArray1.length);
+            if (!Arrays.equals(floatArray1,floatArray2)) {
+                throw new Exception("float array test failure: " + Arrays.toString(floatArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("float array test RemoteException: " + Arrays.toString(floatArray1) + " " + re);
+        }
+
+        //
+        // float two-dimensional array
+        //
+        try {
+            float[][] float2dArray2 = marshalEJBRemote.marshalFloat(float2dArray1);
+            System.out.println("float two-dimensional array size passed to EJB: " + float2dArray1.length);
+            if (!Arrays.deepEquals(float2dArray1,float2dArray2)) {
+                throw new Exception("float two-dimensional array test failure: " + Arrays.deepToString(float2dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("float two-dimensional array test RemoteException: " + Arrays.deepToString(float2dArray1));
+        }
+
+        //
+        // float three-dimensional array
+        //
+        try {
+            float[][][] float3dArray2 = marshalEJBRemote.marshalFloat(float3dArray1);
+            System.out.println("float three-dimensional array size passed to EJB: " + float3dArray1.length);
+            if (!Arrays.deepEquals(float3dArray1,float3dArray2)) {
+                throw new Exception("float three-dimensional array test failure: " + Arrays.deepToString(float3dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("float three-dimensional array test RemoteException: " + Arrays.deepToString(float3dArray1) + " " + re);
+        }
+
+        //
+        // double primitive
+        //
+        System.out.println();
+        double double1 = random.nextDouble();
+        double double2 = random.nextDouble();
+        try {
+            double2 = marshalEJBRemote.marshalDouble(double1);
+            System.out.println("double passed to EJB: " + double1);
+            if (double1!=double2) {
+                throw new Exception("double test failure: " + double1);
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("double test RemoteException: " + double1 + " " + re);
+        }
+
+        //
+        // double array
+        //
+        try {
+            double[] doubleArray2 = marshalEJBRemote.marshalDouble(doubleArray1);
+            System.out.println("double array size passed to EJB: " + doubleArray1.length);
+            if (!Arrays.equals(doubleArray1,doubleArray2)) {
+                throw new Exception("double array test failure: " + Arrays.toString(doubleArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("double array test RemoteException: " + Arrays.toString(doubleArray1) + " " + re);
+        }
+
+        //
+        // double two-dimensional array
+        //
+        try {
+            double[][] double2dArray2 = marshalEJBRemote.marshalDouble(double2dArray1);
+            System.out.println("double two-dimensional array size passed to EJB: " + double2dArray1.length);
+            if (!Arrays.deepEquals(double2dArray1,double2dArray2)) {
+                throw new Exception("double two-dimensional array test failure: " + Arrays.deepToString(double2dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("double two-dimensional array test RemoteException: " + Arrays.deepToString(double2dArray1) + " " + re);
+        }
+
+        //
+        // double three-dimensional array
+        //
+        try {
+            double[][][] double3dArray2 = marshalEJBRemote.marshalDouble(double3dArray1);
+            System.out.println("double three-dimensional array size passed to EJB: " + double3dArray1.length);
+            if (!Arrays.deepEquals(double3dArray1,double3dArray2)) {
+                throw new Exception("double three-dimensional array test failure: " + Arrays.deepToString(double3dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("double three-dimensional array test RemoteException: " + Arrays.deepToString(double3dArray1) + " " + re);
+        }
+    }
+
+
+    //
+    // initArrays()
+    //
+    private void initArrays() {
+
+        // boolean array
+        booleanArray1 = new boolean[random.nextInt(maxArraySize)];
+        for (int ii=0; ii<booleanArray1.length; ii++) {
+            booleanArray1[ii] = random.nextBoolean();
+        }
+        // boolean two-dimensional array
+        boolean2dArray1 = new boolean[random.nextInt(maxArraySize)][];
+        for (int ii=0; ii<boolean2dArray1.length; ii++) {
+            boolean2dArray1[ii] = new boolean[random.nextInt(maxArraySize)];
+            for (int jj=0; jj<boolean2dArray1[ii].length; jj++) {
+                boolean2dArray1[ii][jj] = random.nextBoolean();
+            }
+        }
+        // boolean three-dimensional array
+        boolean3dArray1 = new boolean[random.nextInt(maxArraySize)][][];
+        for (int ii=0; ii<boolean3dArray1.length; ii++) {
+            boolean3dArray1[ii] = new boolean[random.nextInt(maxArraySize)][];
+            for (int jj=0; jj<boolean3dArray1[ii].length; jj++) {
+                boolean3dArray1[ii][jj] = new boolean[random.nextInt(maxArraySize)];
+                for (int kk=0; kk<boolean3dArray1[ii][jj].length; kk++) {
+                    boolean3dArray1[ii][jj][kk] = random.nextBoolean();
+                }
+            }
+        }
+
+        // byte array
+        byteArray1 = new byte[random.nextInt(maxArraySize)];
+        random.nextBytes(byteArray1);
+        // byte two-dimensional array
+        byte2dArray1 = new byte[random.nextInt(maxArraySize)][];
+        for (int ii=0; ii<byte2dArray1.length; ii++) {
+            byte2dArray1[ii] = new byte[random.nextInt(maxArraySize)];
+            random.nextBytes(byte2dArray1[ii]);
+        }
+        // byte three-dimensional array
+        byte3dArray1 = new byte[random.nextInt(maxArraySize)][][];
+        for (int ii=0; ii<byte3dArray1.length; ii++) {
+            byte3dArray1[ii] = new byte[random.nextInt(maxArraySize)][];
+            for (int jj=0; jj<byte3dArray1[ii].length; jj++) {
+                byte3dArray1[ii][jj] = new byte[random.nextInt(maxArraySize)];
+                random.nextBytes(byte3dArray1[ii][jj]);
+            }
+        }
+
+        // char array
+        charArray1 = new char[random.nextInt(maxArraySize)];
+        for (int ii=0; ii<charArray1.length; ii++) {
+            charArray1[ii] = (char) random.nextInt(MAX_CHAR_VALUE);
+        }
+        // char two-dimensional array
+        char2dArray1 = new char[random.nextInt(maxArraySize)][];
+        for (int ii=0; ii<char2dArray1.length; ii++) {
+            char2dArray1[ii] = new char[random.nextInt(maxArraySize)];
+            for (int jj=0; jj<char2dArray1[ii].length; jj++) {
+                char2dArray1[ii][jj] = (char) random.nextInt(MAX_CHAR_VALUE);
+            }
+        }
+        // char three-dimensional array
+        char3dArray1 = new char[random.nextInt(maxArraySize)][][];
+        for (int ii=0; ii<char3dArray1.length; ii++) {
+            char3dArray1[ii] = new char[random.nextInt(maxArraySize)][];
+            for (int jj=0; jj<char3dArray1[ii].length; jj++) {
+                char3dArray1[ii][jj] = new char[random.nextInt(maxArraySize)];
+                for (int kk=0; kk<char3dArray1[ii][jj].length; kk++) {
+                    char3dArray1[ii][jj][kk] = (char) random.nextInt(MAX_CHAR_VALUE);
+                }
+            }
+        }
+
+        // short array
+        shortArray1 = new short[random.nextInt(maxArraySize)];
+        for (int ii=0; ii<shortArray1.length; ii++) {
+            shortArray1[ii] = (short) random.nextInt();
+        }
+        // short two-dimensional array
+        short2dArray1 = new short[random.nextInt(maxArraySize)][];
+        for (int ii=0; ii<short2dArray1.length; ii++) {
+            short2dArray1[ii] = new short[random.nextInt(maxArraySize)];
+            for (int jj=0; jj<short2dArray1[ii].length; jj++) {
+                short2dArray1[ii][jj] = (short) random.nextInt();
+            }
+        }
+        // short three-dimensional array
+        short3dArray1 = new short[random.nextInt(maxArraySize)][][];
+        for (int ii=0; ii<short3dArray1.length; ii++) {
+            short3dArray1[ii] = new short[random.nextInt(maxArraySize)][];
+            for (int jj=0; jj<short3dArray1[ii].length; jj++) {
+                short3dArray1[ii][jj] = new short[random.nextInt(maxArraySize)];
+                for (int kk=0; kk<short3dArray1[ii][jj].length; kk++) {
+                    short3dArray1[ii][jj][kk] = (short) random.nextInt();
+                }
+            }
+        }
+
+        // int array
+        intArray1 = new int[random.nextInt(maxArraySize)];
+        for (int ii=0; ii<intArray1.length; ii++) {
+            intArray1[ii] = random.nextInt();
+        }
+        // int two-dimensional array
+        int2dArray1 = new int[random.nextInt(maxArraySize)][];
+        for (int ii=0; ii<int2dArray1.length; ii++) {
+            int2dArray1[ii] = new int[random.nextInt(maxArraySize)];
+            for (int jj=0; jj<int2dArray1[ii].length; jj++) {
+                int2dArray1[ii][jj] = random.nextInt();
+            }
+        }
+        // int three-dimensional array
+        int3dArray1 = new int[random.nextInt(maxArraySize)][][];
+        for (int ii=0; ii<int3dArray1.length; ii++) {
+            int3dArray1[ii] = new int[random.nextInt(maxArraySize)][];
+            for (int jj=0; jj<int3dArray1[ii].length; jj++) {
+                int3dArray1[ii][jj] = new int[random.nextInt(maxArraySize)];
+                for (int kk=0; kk<int3dArray1[ii][jj].length; kk++) {
+                    int3dArray1[ii][jj][kk] = random.nextInt();
+                }
+            }
+        }
+
+        // long array
+        longArray1 = new long[random.nextInt(maxArraySize)];
+        for (int ii=0; ii<longArray1.length; ii++) {
+            longArray1[ii] = random.nextLong();
+        }
+        // long two-dimensional array
+        long2dArray1 = new long[random.nextInt(maxArraySize)][];
+        for (int ii=0; ii<long2dArray1.length; ii++) {
+            long2dArray1[ii] = new long[random.nextInt(maxArraySize)];
+            for (int jj=0; jj<long2dArray1[ii].length; jj++) {
+                long2dArray1[ii][jj] = random.nextLong();
+            }
+        }
+        // long three-dimensional array
+        long3dArray1 = new long[random.nextInt(maxArraySize)][][];
+        for (int ii=0; ii<long3dArray1.length; ii++) {
+            long3dArray1[ii] = new long[random.nextInt(maxArraySize)][];
+            for (int jj=0; jj<long3dArray1[ii].length; jj++) {
+                long3dArray1[ii][jj] = new long[random.nextInt(maxArraySize)];
+                for (int kk=0; kk<long3dArray1[ii][jj].length; kk++) {
+                    long3dArray1[ii][jj][kk] = random.nextLong();
+                }
+            }
+        }
+
+        // float array
+        floatArray1 = new float[random.nextInt(maxArraySize)];
+        for (int ii=0; ii<floatArray1.length; ii++) {
+            floatArray1[ii] = random.nextFloat();
+        }
+        // float two-dimensional array
+        float2dArray1 = new float[random.nextInt(maxArraySize)][];
+        for (int ii=0; ii<float2dArray1.length; ii++) {
+            float2dArray1[ii] = new float[random.nextInt(maxArraySize)];
+            for (int jj=0; jj<float2dArray1[ii].length; jj++) {
+                float2dArray1[ii][jj] = random.nextFloat();
+            }
+        }
+        // float three-dimensional array
+        float3dArray1 = new float[random.nextInt(maxArraySize)][][];
+        for (int ii=0; ii<float3dArray1.length; ii++) {
+            float3dArray1[ii] = new float[random.nextInt(maxArraySize)][];
+            for (int jj=0; jj<float3dArray1[ii].length; jj++) {
+                float3dArray1[ii][jj] = new float[random.nextInt(maxArraySize)];
+                for (int kk=0; kk<float3dArray1[ii][jj].length; kk++) {
+                    float3dArray1[ii][jj][kk] = random.nextFloat();
+                }
+            }
+        }
+
+        // double array
+        doubleArray1 = new double[random.nextInt(maxArraySize)];
+        for (int ii=0; ii<doubleArray1.length; ii++) {
+            doubleArray1[ii] = random.nextDouble();
+        }
+        // double two-dimensional array
+        double2dArray1 = new double[random.nextInt(maxArraySize)][];
+        for (int ii=0; ii<double2dArray1.length; ii++) {
+            double2dArray1[ii] = new double[random.nextInt(maxArraySize)];
+            for (int jj=0; jj<double2dArray1[ii].length; jj++) {
+                double2dArray1[ii][jj] = random.nextDouble();
+            }
+        }
+        // double three-dimensional array
+        double3dArray1 = new double[random.nextInt(maxArraySize)][][];
+        for (int ii=0; ii<double3dArray1.length; ii++) {
+            double3dArray1[ii] = new double[random.nextInt(maxArraySize)][];
+            for (int jj=0; jj<double3dArray1[ii].length; jj++) {
+                double3dArray1[ii][jj] = new double[random.nextInt(maxArraySize)];
+                for (int kk=0; kk<double3dArray1[ii][jj].length; kk++) {
+                    double3dArray1[ii][jj][kk] = random.nextDouble();
+                }
+            }
+        }
+    }
+}

Added: geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/JavaStrings.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/JavaStrings.java?view=auto&rev=549846
==============================================================================
--- geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/JavaStrings.java (added)
+++ geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/JavaStrings.java Fri Jun 22 08:33:12 2007
@@ -0,0 +1,262 @@
+/**
+ * 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.testsuite.corba.marshal;
+
+import java.lang.reflect.Array;
+import java.rmi.RemoteException;
+import java.util.Arrays;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import java.util.Random;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.rmi.PortableRemoteObject;
+
+public class JavaStrings {
+
+    private static int maxArraySize;
+    private static Random random;                           // Pseudo-random number generator
+    private static final int MAX_STRING_SIZE=10000;
+
+    private static final int[] charTable = new int[224];    // Printable characters only (32-256)
+
+    // Arrays of Strings
+    private static String[] stringArray1;
+    private static ArrayList<String> stringArrayList1;
+
+    // Two-dimensional arrays of Strings
+    private static String[][] string2dArray1;
+    private static List<ArrayList<String>> string2dArrayList1;
+
+    // Three-dimensional arrays of Strings
+    private static String[][][] string3dArray1;
+    private static Collection<List<ArrayList<String>>> string3dArrayList1;
+
+    //
+    // Constructors
+    //
+    public JavaStrings(int seed, int size) {
+        random = new Random(seed);                  // Repeatable
+        maxArraySize = size;
+        initArrays();
+    }
+    private JavaStrings() {
+        random = new Random();                      // Not as repeatable since timestamp used as seed
+        maxArraySize = 25;
+        initArrays();
+    }
+
+    //
+    // marshal()
+    //
+    public void marshal() throws Exception {
+
+        //
+        // Get access to the MarshalEJB
+        //
+        Context ctx = new InitialContext();
+        Object o = ctx.lookup("java:comp/env/MarshalEJB");
+        MarshalEJBHome marshalEJBHome = (MarshalEJBHome) PortableRemoteObject.narrow(o, MarshalEJBHome.class);
+        MarshalEJBRemote marshalEJBRemote = marshalEJBHome.create();
+
+        //
+        // String
+        //
+        System.out.println();
+        String string1 = randomString();
+        String string2 = "";
+        try {
+            string2 = marshalEJBRemote.marshalString(string1);
+            System.out.println("String passed to EJB: " + string1);
+            if (!string1.equals(string2)) {
+                throw new Exception("String test failure: " + string1);
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("String test RemoteException: " + string1 + " " + re);
+        }
+
+        //
+        // String array
+        //
+        try {
+            String[] stringArray2 = marshalEJBRemote.marshalString(stringArray1);
+            System.out.println("String array size passed to EJB: " + stringArray1.length);
+            if (!Arrays.equals(stringArray1,stringArray2)) {
+                throw new Exception("String array test failure: " + Arrays.toString(stringArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("String array test RemoteException: " + Arrays.toString(stringArray1) + " " + re);
+        }
+
+        //
+        // String array list
+        //
+        try {
+            ArrayList<String> stringArrayList2 = marshalEJBRemote.marshalString(stringArrayList1);
+            System.out.println("String array list size passed to EJB: " + stringArrayList1.size());
+            if (!stringArrayList1.equals(stringArrayList2)) {
+                throw new Exception("String array list test failure: " + Arrays.toString(stringArrayList1.toArray()));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("String array list test RemoteException: " + Arrays.toString(stringArrayList1.toArray()) + " " + re);
+        }
+
+        //
+        // String two-dimensional array
+        //
+        try {
+            String[][] string2dArray2 = marshalEJBRemote.marshalString(string2dArray1);
+            System.out.println("String two-dimensional array size passed to EJB: " + string2dArray1.length);
+            if (!Arrays.deepEquals(string2dArray1,string2dArray2)) {
+                throw new Exception("String two-dimensional array test failure: " + Arrays.deepToString(string2dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("String two-dimensional array test RemoteException: " + Arrays.deepToString(string2dArray1) + " " + re);
+        }
+
+        //
+        // String two-dimensional array list
+        //
+        try {
+            List<ArrayList<String>> string2dArrayList2 = marshalEJBRemote.marshalString(string2dArrayList1);
+            System.out.println("String two-dimensional array list size passed to EJB: " + string2dArrayList1.size());
+            if (!string2dArrayList1.equals(string2dArrayList2)) {
+                throw new Exception("String two-dimensional array list failure: " + Arrays.toString(string2dArrayList1.toArray()));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("String two-dimensional array list test RemoteException: " + Arrays.toString(string2dArrayList1.toArray()) + " " + re);
+        }
+
+        //
+        // String three-dimensional array
+        //
+        try {
+            String[][][] string3dArray2 = marshalEJBRemote.marshalString(string3dArray1);
+            System.out.println("String three-dimensional array size passed to EJB: " + string3dArray1.length);
+            if (!Arrays.deepEquals(string3dArray1,string3dArray2)) {
+                throw new Exception("String three-dimensional array test failure: " + Arrays.deepToString(string3dArray1));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("String three-dimensional array test RemoteException: " + Arrays.deepToString(string3dArray1) + " " + re);
+        }
+
+        //
+        // String three-dimensional array list
+        //
+        try {
+            Collection<List<ArrayList<String>>> string3dArrayList2 = marshalEJBRemote.marshalString(string3dArrayList1);
+            System.out.println("String three-dimensional array list size passed to EJB: " + string3dArrayList1.size());
+            if (!string3dArrayList1.equals(string3dArrayList2)) {
+                throw new Exception("String three-dimensional array list failure: " + Arrays.toString(string3dArrayList1.toArray()));
+            }
+        }
+        catch (RemoteException re) {
+            throw new Exception("String three-dimensional array list test RemoteException: " + Arrays.toString(string3dArrayList1.toArray()) + " " + re);
+        }
+
+    }
+
+
+    //
+    // randomString()
+    //
+    private String randomString() {
+        String randomString = "";
+        for (int ii=0; ii<random.nextInt(MAX_STRING_SIZE); ii++ ) {
+            randomString = randomString + (char)charTable[random.nextInt(charTable.length)];
+        }
+        return randomString;
+    }
+
+
+    //
+    // initArrays()
+    //
+    private void initArrays() {
+
+        // charTable array
+        for (int ii=0; ii<charTable.length; ii++) {
+            charTable[ii] = ii+32;
+        }
+        // String array
+        stringArray1 = new String[random.nextInt(maxArraySize)];
+        for (int ii=0; ii<stringArray1.length; ii++) {
+            stringArray1[ii] = randomString();
+        }
+        // String array list
+        stringArrayList1 = new ArrayList<String>();
+        int arraySize = random.nextInt(maxArraySize);
+        for (int ii=0; ii<arraySize; ii++) {
+            stringArrayList1.add(randomString());
+        }
+        // String two-dimensional array
+        string2dArray1 = new String[random.nextInt(maxArraySize)][];
+        for (int ii=0; ii<string2dArray1.length; ii++) {
+            string2dArray1[ii] = new String[random.nextInt(maxArraySize)];
+            for (int jj=0; jj<string2dArray1[ii].length; jj++) {
+                string2dArray1[ii][jj] = randomString();
+            }
+        }
+        // String two-dimensional array list
+        string2dArrayList1 = new ArrayList();
+        int arraySize1 = random.nextInt(maxArraySize);
+        int arraySize2 = random.nextInt(maxArraySize);
+        for (int ii=0; ii<arraySize1; ii++) {
+            ArrayList<String> stringArrayList = new ArrayList<String>();
+            for (int jj=0; jj<arraySize2; jj++) {
+                stringArrayList.add(randomString());
+            }
+            string2dArrayList1.add(stringArrayList);
+        }
+        // String three-dimensional array
+        string3dArray1 = new String[random.nextInt(maxArraySize)][][];
+        for (int ii=0; ii<string3dArray1.length; ii++) {
+            string3dArray1[ii] = new String[random.nextInt(maxArraySize)][];
+            for (int jj=0; jj<string3dArray1[ii].length; jj++) {
+                string3dArray1[ii][jj] = new String[random.nextInt(maxArraySize)];
+                for (int kk=0; kk<string3dArray1[ii][jj].length; kk++) {
+                    string3dArray1[ii][jj][kk] = randomString();
+                }
+            }
+        }
+        // String three-dimensional array list
+        string3dArrayList1 = new ArrayList();
+        arraySize1 = random.nextInt(maxArraySize);
+        arraySize2 = random.nextInt(maxArraySize);
+        int arraySize3 = random.nextInt(maxArraySize);
+        for (int ii=0; ii<arraySize1; ii++) {
+            List<ArrayList<String>> stringArrayList1= new ArrayList();
+            for (int jj=0; jj<arraySize2; jj++) {
+                ArrayList<String> stringArrayList2 = new ArrayList<String>();
+                for (int kk=0; kk<arraySize3; kk++) {
+                    stringArrayList2.add(randomString());
+                }
+                stringArrayList1.add(stringArrayList2);
+            }
+            string3dArrayList1.add(stringArrayList1);
+        }
+    }
+}

Added: geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBCallbackHandler.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBCallbackHandler.java?view=auto&rev=549846
==============================================================================
--- geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBCallbackHandler.java (added)
+++ geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBCallbackHandler.java Fri Jun 22 08:33:12 2007
@@ -0,0 +1,44 @@
+/**
+ * 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.testsuite.corba.marshal;
+
+import java.io.IOException;
+
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.UnsupportedCallbackException;
+import javax.security.auth.callback.NameCallback;
+import javax.security.auth.callback.PasswordCallback;
+
+public class MarshalEJBCallbackHandler implements CallbackHandler {
+
+    public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
+        for (int i = 0; i < callbacks.length; i++) {
+            Callback callback = callbacks[i];
+            if (callback instanceof NameCallback) {
+                ((NameCallback)callback).setName("system");
+            }
+            else if (callback instanceof PasswordCallback) {
+                ((PasswordCallback)callback).setPassword("manager".toCharArray());
+            }
+            else {
+                throw new UnsupportedCallbackException(callback);
+            }
+        }
+    }
+}

Added: geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBClient.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBClient.java?view=auto&rev=549846
==============================================================================
--- geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBClient.java (added)
+++ geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBClient.java Fri Jun 22 08:33:12 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.
+ */
+
+package org.apache.geronimo.testsuite.corba.marshal;
+
+import java.util.Random;
+
+public class MarshalEJBClient {
+
+    private static final int MAX_ARRAY_SIZE=25;     // Maximum array size needs to be large enough
+                                                    // to minimally stress CORBA, but also small
+                                                    // enough so as not to encur out of memory
+                                                    // exceptions, which is very easy to do since
+                                                    // two and three dimensional arrays as used
+
+    public static void main(String[] args) throws Exception{
+
+        Random random = new Random();               // Create a pseudo-random number generator
+        int seed = random.nextInt(1000);            // with 1000 possible repeatable variations
+
+        System.out.println("############################################################################");
+        System.out.println("Seed for pseudo-random number generator: " + seed);
+        System.out.println("Maximum array size: " + MAX_ARRAY_SIZE);
+
+        //
+        // marshal/unmarshal various primities and arrays of primitives
+        //
+        JavaPrimitives primitives = new JavaPrimitives(seed, MAX_ARRAY_SIZE);
+        primitives.marshal();
+
+
+        //
+        // marshal/unmarshal various strings and arrays of strings
+        //
+        JavaStrings strings = new JavaStrings(seed, MAX_ARRAY_SIZE);
+        strings.marshal();
+
+        System.out.println("############################################################################");
+
+    }
+}

Added: geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBHome.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBHome.java?view=auto&rev=549846
==============================================================================
--- geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBHome.java (added)
+++ geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBHome.java Fri Jun 22 08:33:12 2007
@@ -0,0 +1,26 @@
+/**
+ * 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.testsuite.corba.marshal;
+
+import javax.ejb.EJBHome;
+
+public interface MarshalEJBHome extends EJBHome {
+
+    MarshalEJBRemote create() throws javax.ejb.CreateException, java.rmi.RemoteException;
+
+}

Added: geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBRemote.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBRemote.java?view=auto&rev=549846
==============================================================================
--- geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBRemote.java (added)
+++ geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/java/org/apache/geronimo/testsuite/corba/marshal/MarshalEJBRemote.java Fri Jun 22 08:33:12 2007
@@ -0,0 +1,76 @@
+/**
+ * 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.testsuite.corba.marshal;
+
+import java.rmi.RemoteException;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import javax.ejb.EJBObject;
+
+public interface MarshalEJBRemote extends EJBObject {
+
+    public boolean marshalBoolean(boolean p) throws RemoteException;
+    public boolean[] marshalBoolean(boolean[] p) throws RemoteException;
+    public boolean[][] marshalBoolean(boolean[][] p) throws RemoteException;
+    public boolean[][][] marshalBoolean(boolean[][][] p) throws RemoteException;
+
+    public byte marshalByte(byte p) throws RemoteException;
+    public byte[] marshalByte(byte[] p) throws RemoteException;
+    public byte[][] marshalByte(byte[][] p) throws RemoteException;
+    public byte[][][] marshalByte(byte[][][] p) throws RemoteException;
+
+    public char marshalChar(char p) throws RemoteException;
+    public char[] marshalChar(char[] p) throws RemoteException;
+    public char[][] marshalChar(char[][] p) throws RemoteException;
+    public char[][][] marshalChar(char[][][] p) throws RemoteException;
+
+    public short marshalShort(short p) throws RemoteException;
+    public short[] marshalShort(short[] p) throws RemoteException;
+    public short[][] marshalShort(short[][] p) throws RemoteException;
+    public short[][][] marshalShort(short[][][] p) throws RemoteException;
+
+    public int marshalInt(int p) throws RemoteException;
+    public int[] marshalInt(int[] p) throws RemoteException;
+    public int[][] marshalInt(int[][] p) throws RemoteException;
+    public int[][][] marshalInt(int[][][] p) throws RemoteException;
+
+    public long marshalLong(long p) throws RemoteException;
+    public long[] marshalLong(long[] p) throws RemoteException;
+    public long[][] marshalLong(long[][] p) throws RemoteException;
+    public long[][][] marshalLong(long[][][] p) throws RemoteException;
+
+    public float marshalFloat(float p) throws RemoteException;
+    public float[] marshalFloat(float[] p) throws RemoteException;
+    public float[][] marshalFloat(float[][] p) throws RemoteException;
+    public float[][][] marshalFloat(float[][][] p) throws RemoteException;
+
+    public double marshalDouble(double p) throws RemoteException;
+    public double[] marshalDouble(double[] p) throws RemoteException;
+    public double[][] marshalDouble(double[][] p) throws RemoteException;
+    public double[][][] marshalDouble(double[][][] p) throws RemoteException;
+
+    public String marshalString(String p) throws RemoteException;
+    public String[] marshalString(String[] p) throws RemoteException;
+    public String[][] marshalString(String[][] p) throws RemoteException;
+    public String[][][] marshalString(String[][][] p) throws RemoteException;
+
+    public ArrayList<String> marshalString(ArrayList<String> p) throws RemoteException;
+    public List<ArrayList<String>> marshalString(List<ArrayList<String>> p) throws RemoteException;
+    public Collection<List<ArrayList<String>>> marshalString(Collection<List<ArrayList<String>>> p) throws RemoteException;
+}

Added: geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/resources/META-INF/application-client.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/resources/META-INF/application-client.xml?view=auto&rev=549846
==============================================================================
--- geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/resources/META-INF/application-client.xml (added)
+++ geronimo/server/trunk/testsuite/corba-testsuite/corba-marshal/corba-marshal-client/src/main/resources/META-INF/application-client.xml Fri Jun 22 08:33:12 2007
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!--
+    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.
+-->
+
+<application-client 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/applicationclient_1_4.xsd"
+    version="1.4">
+
+    <display-name>Example using CORBA to access a stateless EJB</display-name>
+    <ejb-ref>
+        <ejb-ref-name>MarshalEJB</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <home>org.apache.geronimo.testsuite.corba.marshal.MarshalEJBHome</home>
+        <remote>org.apache.geronimo.testsuite.corba.marshal.MarshalEJBRemote</remote>
+        <ejb-link>corba-marshal-ejb-${version}#MarshalEJB</ejb-link>
+    </ejb-ref>
+</application-client>