Richard,
Good point. To take this idea one step further, you can build sequences of
key/value
pairs and pass those through the IDL. That way you don't have to recode (or
regenerate)
the IDL when you modify the interface.
To go even further than key/value pair one could represent more complex
structures
using XML ( I think this was already suggested in this thread...).
Ninety ways to skin the cat, 50 ways to leave your lover... ;-)
-Chris.
> -----Original Message-----
> From: Richard Monson-Haefel [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, June 10, 1999 9:01 AM
> To: [EMAIL PROTECTED]
> Subject: Re: CORBA-EJB
>
> 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".
===========================================================================
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".