aws / aws/serverless-java-container
ServletContextListener never invoked
- Linguagem predominante
- Java
- Estrelas
- 1.6k
- Forks
- 574
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
*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
Guia de contribuição
Direção de pesquisa
Comece inspecionando AwsServletContext.addListener e o ciclo de vida de ServletContextInitializer e ServletContextListener descrito na issue. Rastreie como o contexto de servlet da AWS é criado e determine onde o listener registrado deve ser invocado. A tarefa estará concluída quando um ServletContextListener adicionado for chamado durante a inicialização sem interromper o caminho de inicialização serverless do Spring Boot.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- aws, java, spring-boot
- Domínio
- api, backend, cloud
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100