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 using the MeteorSerlvet, other features (like using a JMSBroadcaster for example) are not available. Looking at the code, I can see the constructor overrides the definition of the "protected AtmosphereFramework framework":
public MeteorServlet(boolean isFilter) {
framework = new AtmosphereFramework(isFilter) {
...
Is it that we might need to extend the framework configuration instead of overriding it? I managed to implement the following change that would solve the problem of accessing different components (JMS components in my case). Please let me know if this makes sense
Cheers,
Cosmin
....
public MeteorServlet() {
}
public MeteorServlet(boolean isFilter) {
super(isFilter);
}
@Override
public void init(final ServletConfig sc) throws ServletException {
super.init(sc);
String servletClass = sc.getInitParameter(SERVLET_CLASS);
String mapping = sc.getInitParameter(MAPPING);
String filterClass = sc.getInitParameter(FILTER_CLASS);
String filterName = sc.getInitParameter(FILTER_NAME);
ReflectorServletProcessor r = new ReflectorServletProcessor();
r.setServletClassName(servletClass);
r.setFilterClassName(filterClass);
r.setFilterName(filterName);
if (mapping == null) {
mapping = "/*";
}
framework.addAtmosphereHandler(mapping, r);
}
.....
The text was updated successfully, but these errors were encountered:
When using the MeteorSerlvet, other features (like using a JMSBroadcaster for example) are not available. Looking at the code, I can see the constructor overrides the definition of the "protected AtmosphereFramework framework":
Is it that we might need to extend the framework configuration instead of overriding it? I managed to implement the following change that would solve the problem of accessing different components (JMS components in my case). Please let me know if this makes sense
Cheers,
Cosmin
The text was updated successfully, but these errors were encountered: