Hi Tai Li
Thanks for using the Q&A platform.
The error suggests the Spring application lost the connection to Apache Artemis due to inactivity or network issues.
Can you try telnet from the Spring app host?
#Change the x.x.x.x to the Ip and also provide Artemis port number
telnet x.x.x.x port
If the telnet fails, it's likely a network or firewall issue.
Also, ensure the Artemis server VM allows inbound traffic on the Artemis port:
sudo ufw allow port number
# or check with your cloud/vm firewall rules
Lastly, you can try running tcpdump or Wireshark on the Artemis VM to ensure the packets are arriving from the Spring app host.
You can mark it 'Accept Answer' and 'Upvote' if this helped you.
Regards,
Obinna.