Repository navigation
Description
Description
Related to #7602. Define and test how one business application enables multiple Java registration starters, then fix any demonstrated configuration-selection or registration collision. This is a bounded compatibility/implementation task; a complete mixed-starter failure has not yet been reproduced.
Source Evidence
Reviewed main 9dd9a12fb7c64e8a0e26449caa906fe562350dca:
- Spring MVC configuration provides a primary ClientRegisterConfig for HTTP.
- gRPC configuration and WebSocket configuration provide the same interface type for different protocols.
- Generic registrar configuration injects a single ClientRegisterConfig, although its ApiBean pipeline can receive extractors for several protocols. Discovery configuration also has unqualified ClientRegisterConfig injection points.
Individual starter tests do not establish that these combinations select each protocol's own host/port/context or can start together. A primary bean can conceal incorrect selection without producing a bean-ambiguity error.
Task List
- Publish a small supported-combination matrix and start with HTTP + WebSocket and HTTP + gRPC fixtures. Use intentionally different configured ports/context paths so accidental HTTP-config reuse is observable.
- Exercise the default listeners and opt-in ApiBean registration path as applicable; record actual beans selected and emitted namespace/protocol/address/metadata.
- Give each protocol an explicit configuration identity through qualified injection or a small protocol-indexed resolver if a regression demonstrates the need. Preserve existing single-starter injection and public SPI compatibility.
- Ensure shared publisher/repository infrastructure does not cause duplicate lifecycle events or close another active protocol's resources. Keep this scoped to starters in one application context; JVM-wide multi-context resource ownership is a distinct concern.
- Cover applicable local/registry discovery and multi-namespace cases, as well as disabled individual protocols and repeated application refresh.
Acceptance Criteria
- Each advertised combination starts, emits the correct per-protocol identities and serves actual gateway requests for all enabled protocols.
- Different configurations cannot silently borrow another protocol's port, context path or discovery selector. Unsupported combinations fail with a precise diagnostic rather than partial registration.
- Single-starter defaults retain behavior, no required bean appears accidentally because another unrelated starter is present, and stop/offline operations do not remove a healthy sibling protocol.
- Retain starter-level regression tests plus a bounded runtime fixture with exact client/server refs and emitted/persisted state. Distinguish source-candidate checks from published version support.
Boundaries and Validation
This task investigates the common configuration selection and mixed-starter behavior. #8422 already owns remaining individual framework runtime coverage; reuse its harness and #6366's evidence format rather than duplicating its entire matrix. Do not claim support for every protocol combination or introduce a new registry/protocol just to avoid an injection ambiguity.
Evidence for opening this task is source review. Neither a combined-starter failure nor the proposed selection behavior has been executed in this report.
Activity