[
https://issues.apache.org/jira/browse/OFBIZ-7467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17887481#comment-17887481
]
Jacques Le Roux commented on OFBIZ-7467:
----------------------------------------
I now know the reason.
By default we don't allow WebSocket:
https://github.com/apache/ofbiz-framework/blob/trunk/framework/catalina/src/main/java/org/apache/ofbiz/catalina/container/FilterJars.java
https://github.com/apache/ofbiz-framework/blob/trunk/framework/catalina/config/catalina.properties
Anyway currently we have a problem with that. The ofbiz.jar file is not found
by FilterJars.java.
So even if you set webSocket=true in catalina.properties, the only WebSocket
call, in ExamplePushNotifications.js, is not working.
Try wss://localhost:8443/example/ws/pushNotifications once logged in. The same
issue exists in stable demo. it's easy confirmed in browser console with this
message (in French for me):
bq. Firefox ne peut établir de connexion avec le serveur à l’adresse
wss://demo-stable.ofbiz.apache.org/example/ws/pushNotifications.
I tried to find the reason why the build/libs/ofbiz.jar file is not found by
FilterJars.java. But did not find any.
Note that FilterJars is able to find build/mfjars/ofbiz_ManifestJar.jar many
times. I guess in each of the components or maybe webapps.
> WebSocket Example - Push Notifications
> --------------------------------------
>
> Key: OFBIZ-7467
> URL: https://issues.apache.org/jira/browse/OFBIZ-7467
> Project: OFBiz
> Issue Type: Sub-task
> Components: example
> Affects Versions: Trunk, Upcoming Branch
> Reporter: Amardeep Singh Jhajj
> Assignee: Jacques Le Roux
> Priority: Major
> Fix For: 16.11.01
>
> Attachments: OFBIZ-7467.patch, OFBIZ-7483-Screen-Shot.png
>
>
> This is a ticket for adding working example (in example application) of
> WebSocket support that has been done in OFBIZ-7073
--
This message was sent by Atlassian Jira
(v8.20.10#820010)