[MGNLUI-7038] Define servlets via annotation Created: 17/Feb/22  Updated: 10/May/22  Resolved: 21/Mar/22

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0

Type: Story Priority: Neutral
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Done Votes: 0
Labels: nucleus
Remaining Estimate: Not Specified
Time Spent: 0.5d
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLCE-297 Allow discovering of filters/servlets... Discovery
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: Externalize user sensitive configuration
Sprint: Nucleus 5, Nucleus 6, Nucleus 7
Story Points: 3
Team: Nucleus

 Description   

Current configuration

of servlets is in under /server/filters/servlets/

Expected results

Servlets doesn't have to be loaded from JCR.

Development notes

The JCR configuration is created from servlet definition located in moduleDescription.xml.

  • add a no-args ctor to servlet
  • configure servlet via @WebServlet annotation
  • for testing, metadata-complete="false" in web.xml to pick up the annotations (if MGNLCE-297 is not in place already)

 



 Comments   
Comment by Richard Gange [ 17/Feb/22 ]

rkovarik how do you define their order? Or does it not matter? I've seen health check servlets positioned at the bottom to make sure all servlets are responding...

Comment by Roman Kovařík [ 17/Feb/22 ]

Servlet's order (unlike filters) doesn't matter. Only one servlet is executed per request (servlets are terminal).

Comment by Roman Kovařík [ 22/Feb/22 ]

Discovery: branch with a PoC and feature branch builds dx-core tests.

Generated at Mon Feb 12 09:42:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.