Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: Trunk
    • Fix Version/s: 16.11.01
    • Component/s: example
    • Labels:
      None
    • Sprint:
      Community Day 2 - 2016

      Description

      This is a ticket for adding working example (in example application) of WebSocket support that has been done in OFBIZ-7073

      1. OFBIZ-7483-Screen-Shot.png
        693 kB
        Amardeep Singh Jhajj
      2. OFBIZ-7467.patch
        14 kB
        Amardeep Singh Jhajj

        Activity

        Hide
        amardeepsj Amardeep Singh Jhajj added a comment -

        I am adding a very basic working example of sending push notifications to all connected clients using WebSocket.

        Here is the details:

        1. Added support to show push notifications over every screen of an example application using WebSocket when any example created or updated.
        2. As Its an example, so for now push notifications will only for example creation and updation using SECA's.
        3. Push notification will be shown on screen for 5 seconds only, we can close it before 5 seconds using close button if needed.

        The UI of notification pop-up can be changed. I kept it simple (No fancy work) to just demonstrate the WebSocket usage.

        Please find attached patch for it.

        To see it in action, Please follow the steps given in OFBIZ-7073 and apply patch given here.

        Thanks.

        Show
        amardeepsj Amardeep Singh Jhajj added a comment - I am adding a very basic working example of sending push notifications to all connected clients using WebSocket. Here is the details: 1. Added support to show push notifications over every screen of an example application using WebSocket when any example created or updated. 2. As Its an example, so for now push notifications will only for example creation and updation using SECA's. 3. Push notification will be shown on screen for 5 seconds only, we can close it before 5 seconds using close button if needed. The UI of notification pop-up can be changed. I kept it simple (No fancy work) to just demonstrate the WebSocket usage. Please find attached patch for it. To see it in action, Please follow the steps given in OFBIZ-7073 and apply patch given here. Thanks.
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Thanks Amardeep Singh Jhajj,

        Your slightly modified patch is committed at revision: 1750557 with the patch for OFBIZ-7073

        I committed the 2 patches at the same time because the changes in .classpath and the LICENSE files were in the OFBIZ-7467 example patch.

        I also slightly modified the example patch in order to provide an example where no sync issues are possible by using a Collections.synchronizedSet for the javax.websocket.Session Set. I also used synchronized loops as it's requested for synchronizedSet where it's used. I know it rather symbolic in the example component but it will remember developers about the possible sync issue.

        Show
        jacques.le.roux Jacques Le Roux added a comment - Thanks Amardeep Singh Jhajj, Your slightly modified patch is committed at revision: 1750557 with the patch for OFBIZ-7073 I committed the 2 patches at the same time because the changes in .classpath and the LICENSE files were in the OFBIZ-7467 example patch. I also slightly modified the example patch in order to provide an example where no sync issues are possible by using a Collections.synchronizedSet for the javax.websocket.Session Set. I also used synchronized loops as it's requested for synchronizedSet where it's used. I know it rather symbolic in the example component but it will remember developers about the possible sync issue.

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            amardeepsj Amardeep Singh Jhajj
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development

                Agile