Factory Objects

In distributed systems, clients are often required to create objects on remote servers. For example, a customer at a bank needs to create an Account object when opening a new account. Something like a remote constructor is what is needed. Java and C++ both support constructor methods, but the constructors are not remotely accessible.

The solution to the problem of creating remote objects is to use a factory design pattern. This involves defining a factory interface in IDL that can create and manage object references of a particular type. No new features are introduced to help define factory objects. It is simply a design pattern that uses standard IDL syntax.

Consider, for example, a client in a financial application needs to ...

Get Pure CORBA now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.