You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by CobraFlow <ca...@cobraflow.com> on 2014/09/30 11:05:23 UTC
WildFly atmosphere-websocket
I am trying to use atmosphere-websocket in a WildFly 8.1 instance.
I have this in my web.xml :-
<servlet>
<servlet-name>CamelWsServlet</servlet-name>
<servlet-class>org.apache.camel.component.atmosphere.websocket.CamelWebSocketServlet</servlet-class>
<load-on-startup>4</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CamelWsServlet</servlet-name>
<url-pattern>/test/stream/*</url-pattern>
</servlet-mapping>
And my route is :-
<camel:route>
<camel:from
uri="atmosphere-websocket://test/stream?matchOnUriPrefix=true&servletName=CamelWsServlet"/>
<camel:log message="CALL" logName="com.cf.camel"
loggingLevel="DEBUG"/>
<camel:log message="RETURN" logName="com.cf.camel"
loggingLevel="DEBUG"/>
<camel:to
uri="atmosphere-websocket://test/stream?matchOnUriPrefix=true&servletName=CamelWsServlet"/>
</camel:route>
...from debugging, it looks as though it cannot find the ServerContainer.
I always get :-
"ServerContainer is null. Make sure you are using JDK7 and your server has
websocket support enabled."
I am using JDK 1.7.0_45 and WildFly-8.1.0.FINAL
Any pointers would be a great help as I've spent two days on this so far and
am no closer to fixing it!
Thanks in advance...
--
View this message in context: http://camel.465427.n5.nabble.com/WildFly-atmosphere-websocket-tp5757239.html
Sent from the Camel - Users mailing list archive at Nabble.com.