Thank guido. Looking into it.
On Wed, Jun 10, 2015 at 9:45 AM, Guido Medina wrote:
> A better example:
>
>
> @Configuration
> public class SpringWebAppInitializer implements WebApplicationInitializer
> {
>
> // Ugly but you don't have many options here, maybe a volatile?
> // Just make s
A better example:
@Configuration
public class SpringWebAppInitializer implements WebApplicationInitializer {
// Ugly but you don't have many options here, maybe a volatile?
// Just make sure you don't use this context before it is initialized,
// timing will be an issue, I have bee
Pay attention to the WebListener class and @Configuration annotation, my
recommendation would be to use both on the same class, create a static
spring context which is the one you will use later to locate the spring
beans including the ActorSystem which will have a signature like:
@Bean
public
I'm not a a spring expert, I just learned it quickly on the spot for the
sake of the project I have inherited.
I am not familiar with the bean method.
In the project yes I can see that they do what you say, meaning instant
intuit via a web listener.
However I have no idea what is a bean method, whe
If you are starting Spring within Tomcat I would recommend you to have the
Spring programmatic-ally created and instantiated via @WebListener, then
create your @Bean method returning your singleton ActorSystem, within your
method you can tweak aspects like configuration, where to load it from, e