Azure-Samples / cargotracker-liberty-aks

Deploy Cargo Tracker to Open Liberty on Azure Kubernetes Service and monitor the application using Azure Application Insights, Azure Container Insights and Azure Log Analytics.
MIT License
6 stars 6 forks source link

JMS problems when running locally #28

Open edburns opened 1 week ago

edburns commented 1 week ago

When running locally using the steps in Appendix 3 of the README the JMS integration shows these errors:

[INFO] [WARNING ] CNTR4016W: The message endpoint for the RejectedRegistrationAttemptsConsumer message-driven bean cannot be activated because the java:app/jms/RejectedRegistrationAttemptsQueue destination is not available. The message endpoint will not receive messages until the destination becomes available.
[INFO] [WARNING ] CNTR4016W: The message endpoint for the MisdirectedCargoConsumer message-driven bean cannot be activated because the java:app/jms/MisdirectedCargoQueue destination is not available. The message endpoint will not receive messages until the destination becomes available.
[INFO] [WARNING ] CNTR4016W: The message endpoint for the DeliveredCargoConsumer message-driven bean cannot be activated because the java:app/jms/DeliveredCargoQueue destination is not available. The message endpoint will not receive messages until the destination becomes available.
[INFO] [WARNING ] CNTR4016W: The message endpoint for the CargoHandledConsumer message-driven bean cannot be activated because the java:app/jms/CargoHandledQueue destination is not available. The message endpoint will not receive messages until the destination becomes available.
[INFO] [WARNING ] CNTR4016W: The message endpoint for the HandlingEventRegistrationAttemptConsumer message-driven bean cannot be activated because the java:app/jms/HandlingEventRegistrationAttemptQueue destination is not available. The message endpoint will not receive messages until the destination becomes available.

The assignee of this issue is asked to fix these errors.

edburns commented 1 week ago

Will compare and contrast output from https://github.com/azure-javaee/cargotracker-liberty-aks/actions/runs/11562412567 .

backwind1233 commented 1 week ago

I got the same issue within the aks cluster, so it's not just a local running issue.

image
backwind1233 commented 1 week ago

I got the same warning when running https://github.com/eclipse-ee4j/cargotracker/ with openliberty

image
backwind1233 commented 1 week ago

In this case, we should define jms JNDI with global names instead of app level names.