There is a middle ground that allows you to do a kind of PBV without
requiring support OBV.  Use CORBA structures.  If you make your objects
simple state containers with public primitive and String fields, they can be
converted to CORBA structures which is supported by CORBA 2.x.   This way
you can pass Java "objects" across IIOP and expect any CORBA 2.x
implementation to support them.

public class Address {
   public String street;
   public String city;
   public String state;
   public String zip;

   public Address(String str, String Cty, String st, String zp){
         street = str;
         city = cty;
         state = st;
         zip = zip;
   }
}

-----Original Message-----
From: Evan Ireland
To: [EMAIL PROTECTED]
Sent: 6/9/99 5:03 PM
Subject: Re: CORBA-EJB


It's hairy only if the mapping is not well-defined. Of course it is
not trivial to come up with a Java to IDL mapping that doesn't require
OBV, but I think it is well worth the effort. And I accept that in some
cases a mapping will not be possible, but customers looking for
interoperability will accept the inherent limitations of the mapping,
if it means they can avoid writing their own wrapper objects or
hiding the EJBs behind an XML message handler.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to