Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cargotracker-dev] SSE injection issue related to RealTimeCargoTrackingService

Hi Reza and Cargo Tracker developers, 

I was able to get JMS and the rest of the website working with Cargo Tracker and Open Liberty, but I encountered another issue related to SSE injection where the SSE broadcaster is initialized to a null value. I had a few questions about the issue, which I found inside RealTimeCargoTrackingService under main/java/org/eclipse/cargotracker/interfaces/booking/sse. 

1. I'm seeing that the onCargoUpdated method is invoked, but that the tracking() @GET method is not invoked anywhere in the stack trace. How is registration supposed to take place if tracking() is not invoked and do you happen to know where the tracking() method might be called? I haven't been able to find that out so far. 

2. To work around the null broadcaster issue, a JAX-RS developer recommended that I add a @POST setup() method that will create a non-null broadcaster and make sure that this new setup() method is invoked before any other broadcast-related method is called. Would this be a viable option? 

The final recommendation was to potentially use Jakarta EE 9 rather than Jakarta EE 8 to use the restfulws-3.0 feature rather than the jaxrs-2.1 feature, so that's something I would consider if including a new setup() method didn't solve the problem. I can provide detailed steps on how to reproduce the issue and a demonstration of what I'm encountering as well. Thank you so much.

Best,

Chanun Ong
University of California, Berkeley
Electrical Engineering & Computer Science, B.S. 
Class of 2022

Back to the top