[omniORB] IDL Advice

Glenn A. Hochberg ghochberg@att.com
Fri, 11 Aug 2000 08:19:38 -0400


> jiwils - Jimmy Wilson wrote:
> <snip>
> > interface ObjectFactory
> > {
> >         // create method
> >         string Create(in string Type);
> >         // destroy method
> >         void Destroy(in string ObjRef);
> > }
> >

Rather than returning a stringified IOR, the more typical way to do this  would be to
have your Create() method return type CORBA::Object, since all interfaces inherit from
this implicitly.  For Destroy(), you might put this method inside each interface rather
than in the Factory object.

--
Glenn A. Hochberg  | "Any activity becomes creative when the doer
AT&T Labs          |  cares about doing it right, or doing it better."
ghochberg@att.com  |      -John Updike