sofastack / sofastack/sofastack.tech

Need to define build up order for sofa modules, menifest.mf doesn't seem to be working.

Open
#625 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
SCSS
Stars
110
Forks
191
PR merge metrics
No merged PRs in 30d

Description

I want to do some work in the init method i.e. at bean initialization and that method is invoking another sofa service in another module. At startup time it fails because till then another bean is not initialized. To fix this I tried definining another bean's module id in requires-module so that first that module is started but that doesn't seem to be working.

I am using sofa4. Any guidance or help is appreciated.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the startup failure around the bean's init method and inspect the manifest.mf entry using requires-module. Confirm whether the dependent module is initialized before the invoking bean; done means startup completes without the cross-module service call failing.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.