-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Push work with Portlets #200
Comments
The issue was triaged and currently added to the backlog priority queue for further investigation |
Running Liferay with |
Findings regarding enabling Push for portlets with
Could this be a bug in Equinox or maybe a missing OSGi configuration in portlet app? Needs more investigation to answer these. Forcing
|
Vaadin Push functionality doesn't work with Vaadin 14 Portlet integration.
The following code used to enable Push in a portlet application:
doesn't work in both Apache Pluto and Liferay 7 (tested with 7.3) containers.
vaadinPush-min.js
resource as shown below:Jsr356_exception.txt
and also with the failed request to
vaadinPush-min.js
:In the Liferay case, the
ServerContainer
implementation cannot be found in the givenServletContext
, here is a call sequence:JSR356WebsocketInitializer::contextInitialized
PushRequestHandler::initAtmosphere
is called and the atmosphere framework is being customizedAtmosphereFramework::init
JSR356AsyncSupport
but throws because theservlerContainer
is not found:Liferay 7.3 provides a WebSocket implementation already, according to https://help.liferay.com/hc/en-us/articles/360018161191-Liferay-WebSocket-Whiteboard , but it seems the servlet context the atmosphere framework is looking into, has no server container, but it is available in the OSGi context, for instance if the Liferay puts the
ServerContainer
into oneServletContext
object, but the portlet uses another object (this is my raw guess).Vaadin OSGi integration has a similar Push issue, so the problem might be in OSGi specifics.
This ticket is an investigation ticket and doesn't contain any certain suggestions about the feature support implementation so far.
While it is an issue for a Vaadin Portlet and if it an option for you to replace server-to-client async updates in your project, you can use client-to-server async updates like shown below:
The text was updated successfully, but these errors were encountered: