Article View: comp.object.corba
Article #22Re: extensible structs/interoperability
From: Philip Lijnzaad
Date: Wed, 28 Jun 2000 00:00
Date: Wed, 28 Jun 2000 00:00
37 lines
2386 bytes
2386 bytes
Paula> Hello Techies!
Paula> I've just finished drafting a 3-Tier Visibroker/Oracle/Java web
Paula> installation using VB's caffeine. The operational version works well,
Paula> however, using vendor-specific extensions like 'extensible structs'
Paula> strangles the concept of implementation independance.
The thing to go for, then, is to either
- use anys all over the place
- use some XML convention for passing around data
- use valuetypes, but only as follows:
valuetype foo {
public string stuff;
public long more_stuff;
}
valuetype bar: truncatable foo {
public Object yet_more_stuff;
}
This is mostly implementation independent (in the sense of ORB independent);
the only thing you have to do for the receivers of the valuetype is to
instantiate a separate ValueFactory for foo and each of its sub-type; this is
not done by default by the IDL compilers I know.
For discussion of Vectors and Hashtables, see other posting.
Philip
--
Ban GM foods! Long live the Mesolithicum, pesticides and starvation
-----------------------------------------------------------------------------
Philip Lijnzaad, lijnzaad@ebi.ac.uk \ European Bioinformatics Institute,rm A2-24
+44 (0)1223 49 4639 / Wellcome Trust Genome Campus, Hinxton
+44 (0)1223 49 4468 (fax) \ Cambridgeshire CB10 1SD, GREAT BRITAIN
PGP fingerprint: E1 03 BF 80 94 61 B6 FC 50 3D 1F 64 40 75 FB 53
Technical Details
Message-ID:
<u7ya3qb0f0.fsf@o2-3.ebi.ac.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8jc0ms$nqt$1@slb6.atl.mindspring.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 108bbb,222a36e4c2f8e995 X-Google-Attributes: gid108bbb,public X-Google-Thread: f753e,222a36e4c2f8e995 X-Google-Attributes: gidf753e,public X-Google-Thread: 10b07f,222a36e4c2f8e995 X-Google-Attributes: gid10b07f,public From: Philip Lijnzaad <lijnzaad@ebi.ac.uk> Subject: Re: extensible structs/interoperability Date: 2000/06/28 Message-ID: <u7ya3qb0f0.fsf@o2-3.ebi.ac.uk> X-Deja-AN: 639919385 References: <8jc0ms$nqt$1@slb6.atl.mindspring.net> X-Complaints-To: news@net.bio.net X-Trace: niobium.hgmp.mrc.ac.uk 962185774 23297 193.62.196.201 (28 Jun 2000 09:49:34 GMT) Organization: EMBL Outstation Hinxton - European Bioinformatics Institute, UK NNTP-Posting-Date: 28 Jun 2000 09:49:34 GMT Newsgroups: comp.object.corba,comp.lang.java.corba,borland.public.jbuilder.corba-rmi