Similar to logging and database connection, messaging is also a common feature of many real-world Java applications.
Java provides JMS or the Java Messaging Service, that’s not part of JDK. For this component, you need to include a separate jms.jar.
Similarly, if you are using third-party messaging protocols, like Tibco RV, then, you need to use a third-party JAR — tibrv.jar — in your application classpath.
If you want to learn more about JMS and need a resource then I highly recommend you to join the Java Message Service — JMS Fundamentals course by Bharat Thippireddy, one of my favorite Java instructors on Udemy.