You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run mvn clean verify -P"arq-glassfish-managed" -D"it.test=RealtimeCargoTrackingServiceTest"
The text was updated successfully, but these errors were encountered:
hantsy
changed the title
Websocket does not work as expected when upgrading to Jakarta EE 11
Websocket Server Endpoint not work with CDI Singleton/ApplicationScoped
Feb 3, 2025
Environment Details
I tried to update my cargotracker project to Jakarta EE 11, but now the WebSocket tests failed.
Only EJB
@Singleton
work, CDISingleton
/ApplicatoinScoped
did not work with the WebSocket Endpoint.The tests-related codes, the client for test purpose is the following.
And tests:
And a stub class to raise event.
The event was sent in the
server.log
file, but now the client never received the message, although I have adjusted the receiving timeout to 10s.Github actions build stack: https://github.com/hantsy/cargotracker/actions/runs/12662298834/job/35286966646#step:5:408
Steps to reproduce
ee11
branchmvn clean verify -P"arq-glassfish-managed" -D"it.test=RealtimeCargoTrackingServiceTest"
The text was updated successfully, but these errors were encountered: