Spring Boot integration #2519
viacheslavbondarchukk
started this conversation in
General
Replies: 1 comment
-
It seems, I try just the same with an existing Spring boot application (and Vaadin 24): using a servlet registration configration bean to be able to call |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am trying to integrate the Atmosphere Framowork with Srping Boot, all work as well.
But the BroadcasterFactory bean creates before initialization of SpirngAtmosphereServlet and AtmosphereFramework.
This leads to ignor configuration for bean BroadcastFactory.
Am I doing something wrong?
I followed this tutorial:
https://github.com/Atmosphere/atmosphere/wiki/Configuring-Atmosphere-as-a-Spring-Bean
Code:
@configuration
public class AtmosphereAutoConfiguration {
private static final String ATMOSPHERE_SERVLET_NAME = "AtmosphereServlet";
private static final Map<String, String> CONFIG = Map.of(// TODO: externalize it in external configuration
ApplicationConfig.BROADCASTER_LIFECYCLE_POLICY, IDLE_EMPTY_DESTROY.name(),
ApplicationConfig.USE_FORJOINPOOL, "false",
ApplicationConfig.BROADCASTER_SHARABLE_THREAD_POOLS, "true",
ApplicationConfig.BROADCASTER_ASYNC_WRITE_THREADPOOL_MAXSIZE, "200",
ApplicationConfig.BROADCASTER_MESSAGE_PROCESSING_THREADPOOL_MAXSIZE, "100",
ApplicationConfig.BROADCASTER_WAIT_TIME, "5",
ApplicationConfig.BROADCASTER_FACTORY, DefaultBroadcasterFactory.class.getName(),
ApplicationConfig.BROADCASTER_CACHE, DefaultBroadcasterCache.class.getName()
);
}
Beta Was this translation helpful? Give feedback.
All reactions