Cometd Oort Cluster - Spring Integration

偶尔善良 提交于 2019-12-06 21:53:29

I have added an example on how to configure Oort and Seti using Spring annotations.

As for your questions:

  1. The NullPointerException is due to the fact that methods on your Configurer class are called in an order that you don't expect. By the way, Configurer should be annotated with Spring's @Configuration rather than @Component (COMETD-547).

  2. SetiServlet is the configuration Servlet for Seti, so if you configure CometD using Spring, you should configure Seti in Spring, not in web.xml.

  3. Setting Oort and Seti as ServletContext attribute is strongly recommended. It's a simple one liner in the Spring configuration, and allows you for full compatibility with code that uses those attributes.

Follow the example I linked above, and everything should be good.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!