Defining custom/Java objects in an Interface

ben keeping <[email protected]> Sat, 29 Mar 2003 13:58:44 +0000
Newsgroups gmane.comp.java.sun.idl.user
Message-ID <[email protected]>
Hello,

I've been looking into using Java-IDL/CORBA to replace the existing RMI
setup, but am having some difficulty with defining a return value of a Java
object instance, for example,
"javax.media.jai.remote.SerializableRenderedImage".

From a simple file transfer example, which used bytes as a return value, the
interface was ::

interface TestInterface {
   typedef sequence<octet> Data;
   Data downloadFile(in string request);
};

But how would I modify this, so as to define a Java object as a return type
? I tried using the org.omg.CORBA.Object, and casting it to my desired
object type, but the compiler wouldn't have it ...

Thanks for any help,

Ben

_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger
http://www.msn.co.uk/messenger

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff IDL-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".