The requirement development was completed and tested. During the test, it was found that when the listener of activemq was consuming queue messages, the program caught an exception. See the log below.The exception information is obvious, the class com.cn.yft.ora.entity.TAccReviewRecord does not exist. Looking at this ClassNotFoundException exception, I thought that it had also appeared when […]
Tag: jms
Implementing JMS point-to-point messaging based on Tomcat + JNDI + ActiveMQ
Foreword I wrote a simple JMS example. The reason for using JNDI is for universality. This example uses the common interface provided by the JMS specification and does not use the interface of a specific JMS provider. This ensures that the program we write is suitable for any JMS implementation (ActiveMQ, HornetQ…). What is JNDI […]
Spring Boot integrates TongLinkQ through JMS
1. maven dependency: Find the TLQ8\java\lib directory under the TongLinkQ installation root directory, and TongJMS.jar is the jar package that the project needs to use. 2. To establish a connection to obtain the main parameter values: Find TLQ8\etc in the TongLinkQ installation directory, open tlqjdni.conf, you can see the configuration Connection address: tmqiAddressList Connection Factory […]
[Solved] Exception in thread “main” javax.jms.JMSSecurityException: User name [system] or password is invalid
Today, when setting up activemq, in order to consider consumers and producers safely, you need to configure the account password of mq. I searched the Internet for a long time to find the correct answer, and now I will share it with you. I have to say that the current environment is really bad, and […]