# Apparently SSE feature not working as expected when you upgrade Payara 5 releases

**URL:** https://forum.payara.fish/t/apparently-sse-feature-not-working-as-expected-when-you-upgrade-payara-5-releases/586
**Category:** Technical Discussion
**Created:** [April 13, 2023, 12:01pm UTC](https://forum.payara.fish/t/apparently-sse-feature-not-working-as-expected-when-you-upgrade-payara-5-releases/586 "2023-04-13T12:01:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![joe](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@joe](https://forum.payara.fish/u/joe)
#### Post date: [April 13, 2023, 12:01pm UTC](https://forum.payara.fish/t/apparently-sse-feature-not-working-as-expected-when-you-upgrade-payara-5-releases/586/1 "2023-04-13T12:01:35Z")

</div>

Hi,  
I am in the process to upgrade Payara from an old release (Payara Micro 5.201) to a newer Payara Micro 5.2022.5. The new deployments works almost entirely well except that several SSE broadcast endpoints are not working as expected. There is no error associated, simply not broadcasting any event.

Please note that this code is working several years perfectly on PayaraMicro 5.201. On Payara 5.2023.5 doesn’t throw any error but the broadcasters seem not to work as expected.

Please if you have any clue about it, i’d appreciate any help.

Please find below several snippets of code.  
JDK 11.

```auto
    /* Keeps a SSE broadcaster */
    private SseBroadcaster broadcaster;
   /* Injects SSE instance */
    @Context
    Sse sse;

```

```auto
    /* Creates a new SSE broadcaster */
    this.broadcaster = sse.newBroadcaster();

```

```auto
    @GET
    @Path("stream")
    @Produces(MediaType.SERVER_SENT_EVENTS) // sse
    public void getTrackingEvents(@Context SseEventSink eventSink) {
        broadcaster.register(eventSink);
    }

```

```auto
    final OutboundSseEvent event = sse.newEvent("test Event");
    // this.sse.newEventBuilder().name("event").mediaType(MediaType.APPLICATION_JSON_TYPE)
    // .data(String.class, message.getCommand()).build();
    broadcaster.broadcast(event);

```

---

<div class="post-metadata">

### Author: ![JamesHillyard](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.payara.fish/jameshillyard/32/134_2.png) [@JamesHillyard](https://forum.payara.fish/u/JamesHillyard)
#### Post date: [April 21, 2023, 8:11am UTC](https://forum.payara.fish/t/apparently-sse-feature-not-working-as-expected-when-you-upgrade-payara-5-releases/586/2 "2023-04-21T08:11:01Z")

</div>

Hi @joe,

Payara Community 5 is no longer supported as of December 2022. I would instead recommend upgrading to the latest version of Payara Community 6 (At the time of writing that’s 6.2023.4) and testing if this issue still occurs. If it does I would raise an issue over on GitHub for our support team to investigate and track: [Issues · payara/Payara · GitHub](https://github.com/payara/Payara/issues)

Alternatively, if you still need Jakarta EE 8, Payara 5 Enterprise will continue to be supported as a Jakarta EE 8 certified runtime until 2028 for JDK 8 and JDK 17, and until 2026 for JDK 11. With a Payara Enterprise subscription you would get access to our support portal and priority support. Find out more here: [Payara Enterprise – Payara Services Ltd](https://www.payara.fish/enterprise/)

Best Regards,  
James
