Explain why the interfaces to remote objects in general and CORBA objects in particular do not provide constructors. Explain how CORBA objects can be created in the absence of constructors.

What will be an ideal response?

If clients were allowed to request a server to create instances of a given interface, the server would need to provide its implementation. It is more effective for a server to provide an implementation and then offer its interface.

CORBA objects can be created within the server:
1. the server (e.g. in the main method) creates an instance of the implementation class and then exports a remote object reference for accessing its methods.
2. A factory method (in another CORBA object) creates an instance of the implementation class and then exports a remote object reference for accessing its methods.

Computer Science & Information Technology

You might also like to view...

A worm is a piece of code that an end user executes

Indicate whether the statement is true or false

Computer Science & Information Technology

After referencing NEXTVAL, the value in CURRVAL:

A. Is now in PREVVAL B. Is equal to NEXTVAL C. Is unchanged D. Is incremented by one

Computer Science & Information Technology