You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you create a new launch project from the micronaut.io/launch, include the aws-lambda project, and run the application via ./gradlew run command, the application context is ran twice. This is due to the AwsApiProxyTestServer embedded server class building and running a new application context. The Jetty embedded server class you get if you change the micronaut runtime to jetty rather than lambda_java does not create a new application context but uses the one that already exists so I believe this is a bug.
Actual Behaviour
Multiple application contexts are built and run.
Steps To Reproduce
Download the basic launch project with aws-lambda feature. Below is the config I used.
Expected Behavior
When you create a new launch project from the micronaut.io/launch, include the aws-lambda project, and run the application via
./gradlew run
command, the application context is ran twice. This is due to theAwsApiProxyTestServer
embedded server class building and running a new application context. The Jetty embedded server class you get if you change the micronaut runtime to jetty rather than lambda_java does not create a new application context but uses the one that already exists so I believe this is a bug.Actual Behaviour
Multiple application contexts are built and run.
Steps To Reproduce
Download the basic launch project with aws-lambda feature. Below is the config I used.
To show the effect, I created a simple Singleton that runs on a schedule which then you can see is created twice.
Environment Information
Example Application
No response
Version
micronautVersion=4.7.6
The text was updated successfully, but these errors were encountered: