Archived

This forum has been archived. Please start a new discussion on GitHub.

how to: service factory

Hi.

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?

Regards,
Dmitry.

Comments

  • benoit
    benoit Rennes, France
    Hi,

    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.

    Cheers,
    Benoit.