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
Today, I integrate Spring Boot into atmosphere framework,
I'm want to Use Spring DI to manage beans in my application so I have used atmosphere-spring extension.
I have setting Init param for servlet: registration.addInitParameter("org.atmosphere.cpr.objectFactory","org.atmosphere.spring.SpringWebObjectFactory");
My chat service, I want to inject some componenents:
`
@AtmosphereHandlerService(path = "/chat", interceptors=
{AtmosphereResourceLifecycleInterceptor.class,
BroadcastOnPostAtmosphereInterceptor.class})
public class ChatSimple extends OnMessage {
@Inject
private Comp comp; //This component is instantiated By Spring DI
@Inject
private BroadcasterFactory broadcasterFactory;
`
I can not receive correct value of broadcasterFactory object.
Btw, I see we only use one ObjectFactory in the application .
Is there any way to combine bold org.atmosphere.inject.InjectableObjectFactory and org.atmosphere.spring.SpringWebObjectFactory ?
regards
The text was updated successfully, but these errors were encountered:
Dear atmosphere team,
Today, I integrate Spring Boot into atmosphere framework,
I'm want to Use Spring DI to manage beans in my application so I have used atmosphere-spring extension.
I have setting Init param for servlet:
registration.addInitParameter("org.atmosphere.cpr.objectFactory","org.atmosphere.spring.SpringWebObjectFactory");
My chat service, I want to inject some componenents:
`
@AtmosphereHandlerService(path = "/chat", interceptors=
{AtmosphereResourceLifecycleInterceptor.class,
BroadcastOnPostAtmosphereInterceptor.class})
public class ChatSimple extends OnMessage {
`
I can not receive correct value of broadcasterFactory object.
Btw, I see we only use one ObjectFactory in the application .
Is there any way to combine bold org.atmosphere.inject.InjectableObjectFactory and org.atmosphere.spring.SpringWebObjectFactory ?
regards
The text was updated successfully, but these errors were encountered: