tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r644802 - in /incubator/tuscany/java/sca/tutorial/catalog-ejb: ./ src/main/java/client/ src/test/ src/test/java/ src/test/java/client/ src/test/java/org/ src/test/java/org/omg/ src/test/java/org/omg/stub/ src/test/java/org/omg/stub/javax/ s...
Date Fri, 04 Apr 2008 18:06:49 GMT
Author: rfeng
Date: Fri Apr  4 11:06:47 2008
New Revision: 644802

URL: http://svn.apache.org/viewvc?rev=644802&view=rev
Log:
Add generated stubs for testing purpose

Added:
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/client/
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/client/CatalogEJBClientTestCase.java   (with props)
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBHome_Stub.java   (with props)
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBObject_Stub.java   (with props)
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_Handle_Stub.java   (with props)
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_HomeHandle_Stub.java   (with props)
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/ejb/
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBHome_Stub.java   (with props)
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBRemote_Stub.java   (with props)
Removed:
    incubator/tuscany/java/sca/tutorial/catalog-ejb/src/main/java/client/
Modified:
    incubator/tuscany/java/sca/tutorial/catalog-ejb/pom.xml

Modified: incubator/tuscany/java/sca/tutorial/catalog-ejb/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/catalog-ejb/pom.xml?rev=644802&r1=644801&r2=644802&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tutorial/catalog-ejb/pom.xml (original)
+++ incubator/tuscany/java/sca/tutorial/catalog-ejb/pom.xml Fri Apr  4 11:06:47 2008
@@ -40,6 +40,13 @@
             <artifactId>geronimo-ejb_3.0_spec</artifactId>
             <version>1.0</version>
             <scope>provided</scope>
+        </dependency>
+        
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.2</version>
+            <scope>test</scope>
         </dependency>
 
         <dependency>

Added: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/client/CatalogEJBClientTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/client/CatalogEJBClientTestCase.java?rev=644802&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/client/CatalogEJBClientTestCase.java (added)
+++ incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/client/CatalogEJBClientTestCase.java Fri Apr  4 11:06:47 2008
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package client;
+
+import javax.naming.InitialContext;
+import javax.rmi.PortableRemoteObject;
+
+import org.junit.Ignore;
+import org.junit.Test;
+
+import services.ejb.CatalogEJBHome;
+import services.ejb.CatalogEJBRemote;
+import services.ejb.Vegetable;
+
+/**
+ * A test client for the catalog EJB. 
+ *
+ * @version $Rev$ $Date$
+ */
+public class CatalogEJBClientTestCase {
+
+    @Test
+    @Ignore // Ignore the test case for maven build, remove it if you want to run
+    public void testCatalogEJB() throws Exception {
+        InitialContext context = new InitialContext();
+
+        Object o = context.lookup("corbaname:iiop:1.2@localhost:1050#VegetablesCatalogEJB");
+
+        // The narrow(...) call requires generated EJB stubs. Tuscany binding.ejb doesn't the stubs
+        CatalogEJBHome home = (CatalogEJBHome)PortableRemoteObject.narrow(o, CatalogEJBHome.class);
+
+        // The following call will hang with SUN jdk1.6.0_05, please use SUN or IBM jdk 1.5.x instead
+        CatalogEJBRemote catalog = home.create();
+
+        Vegetable items[] = catalog.get();
+        for (Vegetable item : items) {
+            System.out.println(item.getName() + " " + item.getPrice());
+        }
+    }
+
+    public static void main(String args[]) throws Exception {
+        String javaVersion = System.getProperty("java.version");
+        String javaVendor = System.getProperty("java.vendor");
+
+        if (javaVendor.toUpperCase().contains("SUN") && javaVersion.startsWith("1.6.")) {
+            System.err.println("The EJB invocation may hang due to a bug in " + javaVendor + ":" + javaVersion);
+        }
+        new CatalogEJBClientTestCase().testCatalogEJB();
+    }
+
+}

Propchange: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/client/CatalogEJBClientTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/client/CatalogEJBClientTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBHome_Stub.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBHome_Stub.java?rev=644802&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBHome_Stub.java (added)
+++ incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBHome_Stub.java Fri Apr  4 11:06:47 2008
@@ -0,0 +1,223 @@
+/*
+ * 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.    
+ */
+// Stub class generated by rmic, do not edit.
+// Contents subject to change without notice.
+
+package org.omg.stub.javax.ejb;
+
+import java.rmi.RemoteException;
+import java.rmi.UnexpectedException;
+
+import javax.ejb.EJBHome;
+import javax.ejb.EJBMetaData;
+import javax.ejb.Handle;
+import javax.ejb.HomeHandle;
+import javax.ejb.RemoveException;
+import javax.rmi.CORBA.Stub;
+import javax.rmi.CORBA.Util;
+
+import org.omg.CORBA.SystemException;
+import org.omg.CORBA.portable.ApplicationException;
+import org.omg.CORBA.portable.OutputStream;
+import org.omg.CORBA.portable.RemarshalException;
+import org.omg.CORBA.portable.ServantObject;
+import org.omg.CORBA_2_3.portable.InputStream;
+
+public class _EJBHome_Stub extends Stub implements EJBHome {
+    
+    private static final String[] _type_ids = {
+        "RMI:javax.ejb.EJBHome:0000000000000000"
+    };
+    
+    public String[] _ids() { 
+        return _type_ids;
+    }
+    
+    public EJBMetaData getEJBMetaData() throws RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("_get_EJBMetaData", true);
+                        in = (InputStream)_invoke(out);
+                        return (EJBMetaData) in.read_value(EJBMetaData.class);
+                    } catch (ApplicationException ex) {
+                        in = (InputStream) ex.getInputStream();
+                        String id = in.read_string();
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("_get_EJBMetaData",javax.ejb.EJBHome.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    EJBMetaData result = ((javax.ejb.EJBHome)so.servant).getEJBMetaData();
+                    return (EJBMetaData)Util.copyObject(result,_orb());
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public HomeHandle getHomeHandle() throws RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("_get_homeHandle", true);
+                        in = (InputStream)_invoke(out);
+                        return (HomeHandle) in.read_abstract_interface(HomeHandle.class);
+                    } catch (ApplicationException ex) {
+                        in = (InputStream) ex.getInputStream();
+                        String id = in.read_string();
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("_get_homeHandle",javax.ejb.EJBHome.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    HomeHandle result = ((javax.ejb.EJBHome)so.servant).getHomeHandle();
+                    return (HomeHandle)Util.copyObject(result,_orb());
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public void remove(Handle arg0) throws RemoteException, RemoveException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("remove__javax_ejb_Handle", true);
+                        Util.writeAbstractObject(out,arg0);
+                        _invoke(out);
+                        return;
+                    } catch (ApplicationException ex) {
+                        in = (InputStream) ex.getInputStream();
+                        String id = in.read_string();
+                        if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) {
+                            throw (RemoveException) in.read_value(RemoveException.class);
+                        }
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("remove__javax_ejb_Handle",javax.ejb.EJBHome.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    Handle arg0Copy = (Handle) Util.copyObject(arg0,_orb());
+                    ((javax.ejb.EJBHome)so.servant).remove(arg0Copy);
+                    return;
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    if (exCopy instanceof RemoveException) {
+                        throw (RemoveException)exCopy;
+                    }
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public void remove(Object arg0) throws RemoteException, RemoveException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("remove__java_lang_Object", true);
+                        Util.writeAny(out,arg0);
+                        _invoke(out);
+                        return;
+                    } catch (ApplicationException ex) {
+                        in = (InputStream) ex.getInputStream();
+                        String id = in.read_string();
+                        if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) {
+                            throw (RemoveException) in.read_value(RemoveException.class);
+                        }
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("remove__java_lang_Object",javax.ejb.EJBHome.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    Object arg0Copy = (Object) Util.copyObject(arg0,_orb());
+                    ((javax.ejb.EJBHome)so.servant).remove(arg0Copy);
+                    return;
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    if (exCopy instanceof RemoveException) {
+                        throw (RemoveException)exCopy;
+                    }
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+}

Propchange: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBHome_Stub.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBHome_Stub.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBObject_Stub.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBObject_Stub.java?rev=644802&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBObject_Stub.java (added)
+++ incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBObject_Stub.java Fri Apr  4 11:06:47 2008
@@ -0,0 +1,252 @@
+/*
+ * 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.    
+ */
+// Stub class generated by rmic, do not edit.
+// Contents subject to change without notice.
+
+package org.omg.stub.javax.ejb;
+
+import java.rmi.RemoteException;
+import java.rmi.UnexpectedException;
+
+import javax.ejb.EJBHome;
+import javax.ejb.EJBObject;
+import javax.ejb.Handle;
+import javax.ejb.RemoveException;
+import javax.rmi.CORBA.Stub;
+import javax.rmi.CORBA.Util;
+
+import org.omg.CORBA.SystemException;
+import org.omg.CORBA.portable.ApplicationException;
+import org.omg.CORBA.portable.InputStream;
+import org.omg.CORBA.portable.OutputStream;
+import org.omg.CORBA.portable.RemarshalException;
+import org.omg.CORBA.portable.ServantObject;
+
+public class _EJBObject_Stub extends Stub implements EJBObject {
+    
+    private static final String[] _type_ids = {
+        "RMI:javax.ejb.EJBObject:0000000000000000"
+    };
+    
+    public String[] _ids() { 
+        return _type_ids;
+    }
+    
+    public EJBHome getEJBHome() throws RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("_get_EJBHome", true);
+                        in = _invoke(out);
+                        return (EJBHome) in.read_Object(EJBHome.class);
+                    } catch (ApplicationException ex) {
+                        in = ex.getInputStream();
+                        String id = in.read_string();
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("_get_EJBHome",javax.ejb.EJBObject.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    EJBHome result = ((javax.ejb.EJBObject)so.servant).getEJBHome();
+                    return (EJBHome)Util.copyObject(result,_orb());
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public Handle getHandle() throws RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                org.omg.CORBA_2_3.portable.InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("_get_handle", true);
+                        in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out);
+                        return (Handle) in.read_abstract_interface(Handle.class);
+                    } catch (ApplicationException ex) {
+                        in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
+                        String id = in.read_string();
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("_get_handle",javax.ejb.EJBObject.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    Handle result = ((javax.ejb.EJBObject)so.servant).getHandle();
+                    return (Handle)Util.copyObject(result,_orb());
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public Object getPrimaryKey() throws RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("_get_primaryKey", true);
+                        in = _invoke(out);
+                        return Util.readAny(in);
+                    } catch (ApplicationException ex) {
+                        in = ex.getInputStream();
+                        String id = in.read_string();
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("_get_primaryKey",javax.ejb.EJBObject.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    Object result = ((javax.ejb.EJBObject)so.servant).getPrimaryKey();
+                    return (Object)Util.copyObject(result,_orb());
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public boolean isIdentical(EJBObject arg0) throws RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("isIdentical", true);
+                        Util.writeRemoteObject(out,arg0);
+                        in = _invoke(out);
+                        return in.read_boolean();
+                    } catch (ApplicationException ex) {
+                        in = ex.getInputStream();
+                        String id = in.read_string();
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("isIdentical",javax.ejb.EJBObject.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    EJBObject arg0Copy = (EJBObject) Util.copyObject(arg0,_orb());
+                    return ((javax.ejb.EJBObject)so.servant).isIdentical(arg0Copy);
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public void remove() throws RemoteException, RemoveException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                org.omg.CORBA_2_3.portable.InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("remove", true);
+                        _invoke(out);
+                        return;
+                    } catch (ApplicationException ex) {
+                        in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
+                        String id = in.read_string();
+                        if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) {
+                            throw (RemoveException) in.read_value(RemoveException.class);
+                        }
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("remove",javax.ejb.EJBObject.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    ((javax.ejb.EJBObject)so.servant).remove();
+                    return;
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    if (exCopy instanceof RemoveException) {
+                        throw (RemoveException)exCopy;
+                    }
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+}

Propchange: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBObject_Stub.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBObject_Stub.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_Handle_Stub.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_Handle_Stub.java?rev=644802&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_Handle_Stub.java (added)
+++ incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_Handle_Stub.java Fri Apr  4 11:06:47 2008
@@ -0,0 +1,89 @@
+/*
+ * 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.    
+ */
+// Stub class generated by rmic, do not edit.
+// Contents subject to change without notice.
+
+package org.omg.stub.javax.ejb;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+import java.rmi.UnexpectedException;
+
+import javax.ejb.EJBObject;
+import javax.ejb.Handle;
+import javax.rmi.CORBA.Stub;
+import javax.rmi.CORBA.Util;
+
+import org.omg.CORBA.SystemException;
+import org.omg.CORBA.portable.ApplicationException;
+import org.omg.CORBA.portable.InputStream;
+import org.omg.CORBA.portable.OutputStream;
+import org.omg.CORBA.portable.RemarshalException;
+import org.omg.CORBA.portable.ServantObject;
+
+public class _Handle_Stub extends Stub implements Handle,
+Remote {
+    
+    private static final String[] _type_ids = {
+        "RMI:javax.ejb.Handle:0000000000000000"
+    };
+    
+    public String[] _ids() { 
+        return _type_ids;
+    }
+    
+    public EJBObject getEJBObject() throws RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("_get_EJBObject", true);
+                        in = _invoke(out);
+                        return (EJBObject) in.read_Object(EJBObject.class);
+                    } catch (ApplicationException ex) {
+                        in = ex.getInputStream();
+                        String id = in.read_string();
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("_get_EJBObject",javax.ejb.Handle.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    EJBObject result = ((javax.ejb.Handle)so.servant).getEJBObject();
+                    return (EJBObject)Util.copyObject(result,_orb());
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+}

Propchange: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_Handle_Stub.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_Handle_Stub.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_HomeHandle_Stub.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_HomeHandle_Stub.java?rev=644802&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_HomeHandle_Stub.java (added)
+++ incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_HomeHandle_Stub.java Fri Apr  4 11:06:47 2008
@@ -0,0 +1,89 @@
+/*
+ * 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.    
+ */
+// Stub class generated by rmic, do not edit.
+// Contents subject to change without notice.
+
+package org.omg.stub.javax.ejb;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+import java.rmi.UnexpectedException;
+
+import javax.ejb.EJBHome;
+import javax.ejb.HomeHandle;
+import javax.rmi.CORBA.Stub;
+import javax.rmi.CORBA.Util;
+
+import org.omg.CORBA.SystemException;
+import org.omg.CORBA.portable.ApplicationException;
+import org.omg.CORBA.portable.InputStream;
+import org.omg.CORBA.portable.OutputStream;
+import org.omg.CORBA.portable.RemarshalException;
+import org.omg.CORBA.portable.ServantObject;
+
+public class _HomeHandle_Stub extends Stub implements HomeHandle,
+Remote {
+    
+    private static final String[] _type_ids = {
+        "RMI:javax.ejb.HomeHandle:0000000000000000"
+    };
+    
+    public String[] _ids() { 
+        return _type_ids;
+    }
+    
+    public EJBHome getEJBHome() throws RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("_get_EJBHome", true);
+                        in = _invoke(out);
+                        return (EJBHome) in.read_Object(EJBHome.class);
+                    } catch (ApplicationException ex) {
+                        in = ex.getInputStream();
+                        String id = in.read_string();
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("_get_EJBHome",javax.ejb.HomeHandle.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    EJBHome result = ((javax.ejb.HomeHandle)so.servant).getEJBHome();
+                    return (EJBHome)Util.copyObject(result,_orb());
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+}

Propchange: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_HomeHandle_Stub.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_HomeHandle_Stub.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBHome_Stub.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBHome_Stub.java?rev=644802&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBHome_Stub.java (added)
+++ incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBHome_Stub.java Fri Apr  4 11:06:47 2008
@@ -0,0 +1,269 @@
+/*
+ * 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.    
+ */
+// Stub class generated by rmic, do not edit.
+// Contents subject to change without notice.
+
+package services.ejb;
+
+import java.rmi.RemoteException;
+import java.rmi.UnexpectedException;
+
+import javax.ejb.CreateException;
+import javax.ejb.EJBMetaData;
+import javax.ejb.Handle;
+import javax.ejb.HomeHandle;
+import javax.ejb.RemoveException;
+import javax.rmi.CORBA.Stub;
+import javax.rmi.CORBA.Util;
+
+import org.omg.CORBA.SystemException;
+import org.omg.CORBA.portable.ApplicationException;
+import org.omg.CORBA.portable.OutputStream;
+import org.omg.CORBA.portable.RemarshalException;
+import org.omg.CORBA.portable.ServantObject;
+import org.omg.CORBA_2_3.portable.InputStream;
+
+public class _CatalogEJBHome_Stub extends Stub implements CatalogEJBHome {
+    
+    private static final String[] _type_ids = {
+        "RMI:services.ejb.CatalogEJBHome:0000000000000000", 
+        "RMI:javax.ejb.EJBHome:0000000000000000"
+    };
+    
+    public String[] _ids() { 
+        return _type_ids;
+    }
+    
+    public EJBMetaData getEJBMetaData() throws RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("_get_EJBMetaData", true);
+                        in = (InputStream)_invoke(out);
+                        return (EJBMetaData) in.read_value(EJBMetaData.class);
+                    } catch (ApplicationException ex) {
+                        in = (InputStream) ex.getInputStream();
+                        String id = in.read_string();
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("_get_EJBMetaData",javax.ejb.EJBHome.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    EJBMetaData result = ((javax.ejb.EJBHome)so.servant).getEJBMetaData();
+                    return (EJBMetaData)Util.copyObject(result,_orb());
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public HomeHandle getHomeHandle() throws RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("_get_homeHandle", true);
+                        in = (InputStream)_invoke(out);
+                        return (HomeHandle) in.read_abstract_interface(HomeHandle.class);
+                    } catch (ApplicationException ex) {
+                        in = (InputStream) ex.getInputStream();
+                        String id = in.read_string();
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("_get_homeHandle",javax.ejb.EJBHome.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    HomeHandle result = ((javax.ejb.EJBHome)so.servant).getHomeHandle();
+                    return (HomeHandle)Util.copyObject(result,_orb());
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public void remove(Handle arg0) throws RemoteException, RemoveException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("remove__javax_ejb_Handle", true);
+                        Util.writeAbstractObject(out,arg0);
+                        _invoke(out);
+                        return;
+                    } catch (ApplicationException ex) {
+                        in = (InputStream) ex.getInputStream();
+                        String id = in.read_string();
+                        if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) {
+                            throw (RemoveException) in.read_value(RemoveException.class);
+                        }
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("remove__javax_ejb_Handle",javax.ejb.EJBHome.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    Handle arg0Copy = (Handle) Util.copyObject(arg0,_orb());
+                    ((javax.ejb.EJBHome)so.servant).remove(arg0Copy);
+                    return;
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    if (exCopy instanceof RemoveException) {
+                        throw (RemoveException)exCopy;
+                    }
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public void remove(Object arg0) throws RemoteException, RemoveException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("remove__java_lang_Object", true);
+                        Util.writeAny(out,arg0);
+                        _invoke(out);
+                        return;
+                    } catch (ApplicationException ex) {
+                        in = (InputStream) ex.getInputStream();
+                        String id = in.read_string();
+                        if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) {
+                            throw (RemoveException) in.read_value(RemoveException.class);
+                        }
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("remove__java_lang_Object",javax.ejb.EJBHome.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    Object arg0Copy = (Object) Util.copyObject(arg0,_orb());
+                    ((javax.ejb.EJBHome)so.servant).remove(arg0Copy);
+                    return;
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    if (exCopy instanceof RemoveException) {
+                        throw (RemoveException)exCopy;
+                    }
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public CatalogEJBRemote create() throws CreateException, RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("create", true);
+                        in = (InputStream)_invoke(out);
+                        return (CatalogEJBRemote) in.read_Object(CatalogEJBRemote.class);
+                    } catch (ApplicationException ex) {
+                        in = (InputStream) ex.getInputStream();
+                        String id = in.read_string();
+                        if (id.equals("IDL:javax/ejb/CreateEx:1.0")) {
+                            throw (CreateException) in.read_value(CreateException.class);
+                        }
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("create",services.ejb.CatalogEJBHome.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    CatalogEJBRemote result = ((services.ejb.CatalogEJBHome)so.servant).create();
+                    return (CatalogEJBRemote)Util.copyObject(result,_orb());
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    if (exCopy instanceof CreateException) {
+                        throw (CreateException)exCopy;
+                    }
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+}

Propchange: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBHome_Stub.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBHome_Stub.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBRemote_Stub.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBRemote_Stub.java?rev=644802&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBRemote_Stub.java (added)
+++ incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBRemote_Stub.java Fri Apr  4 11:06:47 2008
@@ -0,0 +1,292 @@
+/*
+ * 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.    
+ */
+// Stub class generated by rmic, do not edit.
+// Contents subject to change without notice.
+
+package services.ejb;
+
+import java.rmi.RemoteException;
+import java.rmi.UnexpectedException;
+
+import javax.ejb.EJBHome;
+import javax.ejb.EJBObject;
+import javax.ejb.Handle;
+import javax.ejb.RemoveException;
+import javax.rmi.CORBA.Stub;
+import javax.rmi.CORBA.Util;
+
+import org.omg.CORBA.SystemException;
+import org.omg.CORBA.portable.ApplicationException;
+import org.omg.CORBA.portable.InputStream;
+import org.omg.CORBA.portable.OutputStream;
+import org.omg.CORBA.portable.RemarshalException;
+import org.omg.CORBA.portable.ServantObject;
+
+public class _CatalogEJBRemote_Stub extends Stub implements CatalogEJBRemote {
+    
+    private static final String[] _type_ids = {
+        "RMI:services.ejb.CatalogEJBRemote:0000000000000000", 
+        "RMI:javax.ejb.EJBObject:0000000000000000"
+    };
+    
+    public String[] _ids() { 
+        return _type_ids;
+    }
+    
+    public EJBHome getEJBHome() throws RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("_get_EJBHome", true);
+                        in = _invoke(out);
+                        return (EJBHome) in.read_Object(EJBHome.class);
+                    } catch (ApplicationException ex) {
+                        in = ex.getInputStream();
+                        String id = in.read_string();
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("_get_EJBHome",javax.ejb.EJBObject.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    EJBHome result = ((javax.ejb.EJBObject)so.servant).getEJBHome();
+                    return (EJBHome)Util.copyObject(result,_orb());
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public Handle getHandle() throws RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                org.omg.CORBA_2_3.portable.InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("_get_handle", true);
+                        in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out);
+                        return (Handle) in.read_abstract_interface(Handle.class);
+                    } catch (ApplicationException ex) {
+                        in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
+                        String id = in.read_string();
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("_get_handle",javax.ejb.EJBObject.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    Handle result = ((javax.ejb.EJBObject)so.servant).getHandle();
+                    return (Handle)Util.copyObject(result,_orb());
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public Object getPrimaryKey() throws RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("_get_primaryKey", true);
+                        in = _invoke(out);
+                        return Util.readAny(in);
+                    } catch (ApplicationException ex) {
+                        in = ex.getInputStream();
+                        String id = in.read_string();
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("_get_primaryKey",javax.ejb.EJBObject.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    Object result = ((javax.ejb.EJBObject)so.servant).getPrimaryKey();
+                    return (Object)Util.copyObject(result,_orb());
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public boolean isIdentical(EJBObject arg0) throws RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("isIdentical", true);
+                        Util.writeRemoteObject(out,arg0);
+                        in = _invoke(out);
+                        return in.read_boolean();
+                    } catch (ApplicationException ex) {
+                        in = ex.getInputStream();
+                        String id = in.read_string();
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("isIdentical",javax.ejb.EJBObject.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    EJBObject arg0Copy = (EJBObject) Util.copyObject(arg0,_orb());
+                    return ((javax.ejb.EJBObject)so.servant).isIdentical(arg0Copy);
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public void remove() throws RemoteException, RemoveException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                org.omg.CORBA_2_3.portable.InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("remove", true);
+                        _invoke(out);
+                        return;
+                    } catch (ApplicationException ex) {
+                        in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
+                        String id = in.read_string();
+                        if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) {
+                            throw (RemoveException) in.read_value(RemoveException.class);
+                        }
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("remove",javax.ejb.EJBObject.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    ((javax.ejb.EJBObject)so.servant).remove();
+                    return;
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    if (exCopy instanceof RemoveException) {
+                        throw (RemoveException)exCopy;
+                    }
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+    
+    public Vegetable[] get() throws RemoteException {
+        while(true) {
+            if (!Util.isLocal(this)) {
+                org.omg.CORBA_2_3.portable.InputStream in = null;
+                try {
+                    try {
+                        OutputStream out = _request("get", true);
+                        in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out);
+                        return (Vegetable[]) in.read_value(Vegetable[].class);
+                    } catch (ApplicationException ex) {
+                        in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
+                        String id = in.read_string();
+                        throw new UnexpectedException(id);
+                    } catch (RemarshalException ex) {
+                        continue;
+                    }
+                } catch (SystemException ex) {
+                    throw Util.mapSystemException(ex);
+                } finally {
+                    _releaseReply(in);
+                }
+            } else {
+                ServantObject so = _servant_preinvoke("get",services.ejb.CatalogEJBRemote.class);
+                if (so == null) {
+                    continue;
+                }
+                try {
+                    Vegetable[] result = ((services.ejb.CatalogEJBRemote)so.servant).get();
+                    return (Vegetable[])Util.copyObject(result,_orb());
+                } catch (Throwable ex) {
+                    Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
+                    throw Util.wrapException(exCopy);
+                } finally {
+                    _servant_postinvoke(so);
+                }
+            }
+        }
+    }
+}

Propchange: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBRemote_Stub.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBRemote_Stub.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



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


Mime
View raw message