AW: [omniORB] Multitier callings and callbacks

Schmidmeier, Arno Arno.Schmidmeier@sirius-eos.com
Tue, 29 Jun 1999 16:18:10 +0200


Yes such a scenario is possible (assuming your pseudo code is correct). =

But there are pretty much pitfalls, which you have to consider.
Arno Schmidmeier

************************************************************************=
*
************************************************************************=
*
Arno Schmidmeier

Sirius
Simplicity out of complexity

Arno.Schmidmeier@sirius-eos.com
Phone 0049/89/ 61 36 76-37
Fax 0049/89/ 61 36 76-33




> -----Urspr=FCngliche Nachricht-----
> Von:	Denis Kokarev [SMTP:den@mkb.mari.ru]
> Gesendet am:	Dienstag, 29. Juni 1999 14:54
> An:	omniorb-list@uk.research.att.com
> Betreff:	[omniORB] Multitier callings and callbacks
>=20
> I want to make realize follows scheme:
> Server object holds a reference to Factory object, Client make a =
Server
> call which makes a Factory
> call
> to return Result object.
> Pseudo code descriptions :
>=20
> class Result;
> class Client;
> class Server;
> class Factory;
>=20
> class Result {
>     ....
> }
>=20
> class Client {
>     // methods
>     Server resolveServer();
>=20
>     clientMethod() {
>         ...
>         Result =3D resolveServer()->getResult();
>         ...
>     }
> }
>=20
> class Server {
>      // fields
>      Factory factory;
>      // methods
>      Result getResult() {
>          if (factory) {
>              return factory->getResult();
>          } else
>              throw Exception("Factory not registered");
>      }
>      void registerFactory(Factory f) {
>          factory =3D f;
>      }
> }
>=20
> class Factory {
>      // constructor
>      Factory() {
>          resolveServer()->registerFactory(this);
>      }
>      // methods
>      Server resolveServer();
>=20
>      Result getResult() {
>          return new Result();
>      }
> }
>=20
> Is it possible to realize multitier Result transmitting ? Or only
> client-server relations possible ?
>=20
> If anybody have some answer give me a tip or working example, please.
>=20
>=20