aws / aws/serverless-java-container
ServletContextListener never invoked
- Lenguaje dominante
- Java
- Estrellas
- 1.6k
- Forks
- 574
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
*Serverless Java Container version*: `1.9.1`
*Implementations:* `Spring Boot 2`
*Framework version:* `SpringBoot 2.7.5`
*Frontend service:* `HTTP API`
*Deployment method:* `SAM`
## Scenario
Hilla initializes some parts through a `ServletContextInitializer` that uses `servletContext.addListener` to add a `ServletContextListener` to the context. The actual initialization then takes place in the `ServletContextListener`. The problem is that the `addListener` method of `AwsServletContext` is empty.
Not sure where the correct place would be to invoke the listener. It seems to happen to work if I invoke the listener immediately.
## Expected behavior
The added listener is called
## Actual behavior
The added listener is ignored
Guía de contribución
Línea de trabajo
Comienza inspeccionando AwsServletContext.addListener y el ciclo de vida de ServletContextInitializer y ServletContextListener descrito en el issue. Sigue cómo se crea el contexto de servlet de AWS y determina dónde debería invocarse el listener registrado. Se considera completado cuando un ServletContextListener añadido se invoca durante la inicialización sin romper la ruta de inicio serverless de Spring Boot.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- aws, java, spring-boot
- Área
- api, backend, cloud
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100