Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove servlet beans from being created by Jakarta REST #1204

Open
jansupol opened this issue Jan 23, 2024 · 1 comment
Open

Remove servlet beans from being created by Jakarta REST #1204

jansupol opened this issue Jan 23, 2024 · 1 comment
Milestone

Comments

@jansupol
Copy link
Contributor

Servlet 6.0 (and one of the Weld modules, too) creates beans for

  • jakarta.servlet.http.HttpServletRequest
  • jakarta.servlet.http.HttpServletResponse

While it is perfectly fine to support injection using @context, it should be the responsibility of the servlet to create those CDI beans.

The same is for:

  • jakarta.servlet.ServletConfig
  • jakarta.servlet.ServletContext
@jansupol jansupol added this to the 4.0 milestone Jan 23, 2024
@jamezp
Copy link
Contributor

jamezp commented Jan 23, 2024

+1 this makes sense to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants