geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r534570 - /geronimo/server/trunk/modules/geronimo-corba/src/main/java/org/apache/geronimo/corba/CorbaApplicationServer.java
Date Wed, 02 May 2007 17:52:08 GMT
Author: dblevins
Date: Wed May  2 10:52:07 2007
New Revision: 534570

URL: http://svn.apache.org/viewvc?view=rev&rev=534570
Log:
Updated to current ApplicationServer interface

Modified:
    geronimo/server/trunk/modules/geronimo-corba/src/main/java/org/apache/geronimo/corba/CorbaApplicationServer.java

Modified: geronimo/server/trunk/modules/geronimo-corba/src/main/java/org/apache/geronimo/corba/CorbaApplicationServer.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-corba/src/main/java/org/apache/geronimo/corba/CorbaApplicationServer.java?view=diff&rev=534570&r1=534569&r2=534570
==============================================================================
--- geronimo/server/trunk/modules/geronimo-corba/src/main/java/org/apache/geronimo/corba/CorbaApplicationServer.java
(original)
+++ geronimo/server/trunk/modules/geronimo-corba/src/main/java/org/apache/geronimo/corba/CorbaApplicationServer.java
Wed May  2 10:52:07 2007
@@ -46,6 +46,20 @@
         }
     }
 
+    /**
+     * DMB: My vague understanding is that business interfaces aren't supported by
+     * corba as they do not extend java.rmi.Remote.  But we can try.
+     */
+    public Object getBusinessObject(ProxyInfo proxyInfo) {
+        try {
+            RefGenerator refGenerator = AdapterWrapper.getRefGenerator((String) proxyInfo.getDeploymentInfo().getDeploymentID());
+            org.omg.CORBA.Object object = refGenerator.genObjectReference(proxyInfo.getPrimaryKey());
+            return object;
+        } catch (Throwable e) {
+            throw new org.omg.CORBA.MARSHAL(e.getClass().getName() + " thrown while marshaling
the reply: " + e.getMessage(), 0, org.omg.CORBA.CompletionStatus.COMPLETED_YES);
+        }
+    }
+
     public EJBHome getEJBHome(ProxyInfo proxyInfo) {
         try {
             RefGenerator refGenerator = AdapterWrapper.getRefGenerator((String) proxyInfo.getDeploymentInfo().getDeploymentID());



Mime
View raw message