Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Support for Server Sent Events in Jira Plugins

Tormod Haugene
Contributor
January 28, 2019

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
Péter Magnucz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 16, 2019

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

Tormod Haugene
Contributor
September 17, 2019

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