Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9232031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:13:00+00:00 2026-06-18T06:13:00+00:00

I need a way to share information between modules – not only between components

  • 0

I need a way to share information between modules – not only between components in the same module -.
I have common data to share between the different moduleContext.

-I tried using the application context (moduleContext.getParentContext().setSettings() or getSettings(), but each module context has a different moduleContext.getParentContext().

-I also tried creating a singleton object for the application, but even in this case the singleton data of the first module (landing page) are not available for the other modules.

-The third thing I tried is to pass data via notifications (notify / listen), with the same results.

Does anyone knows how to solve this problem?

Marcos

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:13:01+00:00Added an answer on June 18, 2026 at 6:13 am

    If you want to keep relationship between the module tree, it is necessary that you create your module hierarchy by calling:

    parentContext.loadChildContexts(moduleContexts);

    When this is done, that method ensures the ‘event mediator’ of child contexts is set to the exact same ‘mediator’ instance of the parent context. Then an event occurring at any of the modules will be notified to all the contexts in the same module tress.

    It is the same for settings as well. When ‘loadChildContexts’ method is used, the settings of the parent context are ‘copied’ to child context settings.

    If it still doesn’t work for you, can you share your code to me? I may help you to find where the issue is.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to have two processes share information through a memory mapped file. One
I need to share textual data between 2 users. I'm probably going to use
I have searched through SO looking for different ways to share data between view
I need to share information from a plist with someone who is not technically
Is there a way to share screen Skype link ? // I need to
Hey folks, every once in a while I have the need to automate data
Have two mysql databases in two servers, I have to share user information tables
I have a set of Win32 applications that share information using a shared memory
I have a maven multi-module project (boy, I've written that opening way too many
I am using wss3.0 and I need a way to listen on a shared

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.