Results 1 to 2 of 2

Thread: Accessing beans from several other context to the current cotext

  1. #1
    Join Date
    Sep 2008
    Posts
    1

    Post Accessing beans from several other context to the current cotext

    I need to do any one of the following things:
    1. I need to access child context beans from parent context. Is it possible?
    I know that child context beans can access parent context beans.
    2. If first things is not possible then Can I make a context which can have more then one contexts as parent context. So I can define my beans in this child context which in turn refer foreign beans from its multiple parent contexts.

    Please guide on how Spring can help me in implementing any one of the above cases. Thanks in advance.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    1. I need to access child context beans from parent context. Is it possible?
    No

    2. If first things is not possible then Can I make a context which can have more then one contexts as parent context. So I can define my beans in this child context which in turn refer foreign beans from its multiple parent contexts.
    You can have a whole chain of ApplicationContexts that is what is possible. If you want more esoteric things you will have to write your own.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •