Friday, 15 February 2013

tomcat7 - How to configure Tomcat to support primefaces-push (atmosphere) -



tomcat7 - How to configure Tomcat to support primefaces-push (atmosphere) -

i'm working liferay 6.2 (tomcat 7) , primefaces 5.0. tryed execute the counter example not worked. more precisely, downloaded showcase 5.0 war primefaces site.

i read have enable nio connector. so, according this reply, added connector:

<connector connectiontimeout="20000" port="8081" protocol="org.apache.coyote.http11.http11nioprotocol" redirectport="8443"/>

but primefaces force still doesn't work.

what have enable in tomcat in order create work primefaces push?

i don't know if undocumented specification or bug, @pushendpoint class needs @onopen , @onclose function, if empty.

add these lines @pushendpoint annotated class:

@onopen public void onopen( remoteendpoint r, eventbus e ) { } @onclose public void onclose( remoteendpoint r, eventbus e ) { }

for me solution.

primefaces tomcat7 liferay-6 atmosphere

No comments:

Post a Comment