-
Notifications
You must be signed in to change notification settings - Fork 169
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
@Push broken in OSGi for Flow V12.0.6 #5081
Comments
The error message is a result of unavailable push resources ( But this is far away from the end of the story. Push doesn't work if only the push resources are registered. I don't know the exact reason why but here are some notes (basically for myself but may be useful for understanding of issues overall in the future).
I believe those two classes are required to make Push work. I'm trying to use HTTP Whiteboard specification to register
And this doesn't work.
I've been trying register a servlet using HTT Whiteboard specification and without it. The result is the same in both cases. The error somehow relates to HTTP Whiteboard impl (in Felix) because if I remove Now, here are several implementation notes:
Anyway there are a lot of issues with Push. It won't be easy to solve all of them. I wonder whether Push works in Framework 8 because it should have similar issues. |
Updates:
As a result:
|
We still need to figure out what to do with So to be able to see the current state one should :
The result is: page is reloading all the time. Here in this hack I've used @Artur- , could you please take a look at it. At least may be you can say the reason why Push doesn't work with this approach. |
The
That still doesn't enable Push for the project (push via WS).
The exception is caused by the fact that Apparently this attribute should be set by some initializer. It's not clear which initializer should set it.
which should theoretically add jetty websocket implementation bundle. So it's still not clear which class inside Felix Jetty should initialize |
This ticket in its original description should be fixed by #5112. In fact Push still doesn't work out of the box because default transport is Websocket. But if transport is set to Long polling: The issue for websockets is a completely different thing and I will create a separate ticket for this. |
Use base-starter-flow-osgi and add @Push annotation to MainView.java
I added a small ServiceListener and I would expect any service changes I could immediately push into the browser (of course, using ui.access()).
See screenshot.
12.0.6
1.8.0_181
OSX 10.14.3
Chrome Version 72.0.3626.109 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered: