It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Support for Server Sent Events in Jira Plugins

Hi!

My company are modernising our Jira plugin to have real-time server-client communication, and are in need of some technology to handle the server-side implementation.

The first options that comes to mind is using WebSockets or Server Sent Events (SSE) for this purpose; however, I have yet to find someone who has gotten WebSockets to work in a Jira context, and I am very uncertain about the applicability of SSE as well.

From what I understand, the two current Java implementations of SSE are JAX-RS 2.1, and Spring 4.2. Version 7.13 of Jira seems to provide OSGi bundles of JAX-RS 1.9 only, so no luck there, while Spring 4.2 is available. Unfortunately, configuring Spring 4.2 for SSE appears to require a DispatcherServlet to be configured, which I haven never managed to get working properly when attempting to set up Spring MVC at an earlier occasion. (One must add to web.xml, which we don't want to touch..)

Does someone have insight or experience with these problems, or any advice as for how to proceed?

 

Regards, Tormod 

1 answer

0 votes

Hello Tormod,

We're working on a project like yours. We use async SSE which is work properly in Jira 7.13, but after than we upgrade our development environment to Jira 8 the async servlet stopped working.

Have you been able to solve your problem in some way lately?

Regards Péter

Hi, Péter! 

We ended up implementing the SSE protocol for Servlets from scratch using the https://github.com/mariomac/jeasse open source project as heavy inspiration (it only needed some minor tuning).

We are still running on JIra 7.13, however, so I don't know if it will work on Jira 8. If you figure it out, it would be wonderful if you shared your experiences. :-) 

Regards, Tormod

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

872 views 6 24
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you