Home Help Center

how to: service factory

dmitry.medvedevdmitry.medvedev Member Dmitry N. MedvedevOrganization: PersonalProject: Casual Game Analytics Dashboard ✭✭

I am planning to implement something like a distributed document subsystem with compound documents.
E.g.: imaging we have two documents:
  1. document_A and
  2. document_B

whereas document_B is constructed of the first paragraph of document_A and a number of its own paragraphs, thus, being dependent of the document_A.

When a user requests document_B from a document_Factory service I'd like to instantiate both document_A and document_B as IceBox services whose references should be accessible via the document_Factory. The requirement is: I need to have document_A up and running as long as document_B is.

Any thoughts?



  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff

    It's not clear to me why you want to use IceBox services here. It would be much simpler to have the document_A and document_B servants hosted by the object adapter of the document_Factory service.

Sign In or Register to comment.