Developing JMS and Java applications
IBM MQ provides two Java language interfaces: IBM MQ classes for Java Message Service and IBM MQ classes for Java.
Within IBM MQ there are two alternative APIs for use in Java applications. A Java application can use either IBM MQ classes for JMS or IBM MQ classes for Java to access IBM MQ resources.
- IBM MQ classes for JMS
- IBM MQ classes for Java Message Service (JMS) is the JMS provider that is supplied with IBM MQ. The Java Platform, Enterprise Edition Connector Architecture (JCA) provides a standard way of connecting applications running in a Java EE environment to an Enterprise Information System (EIS) such as IBM MQ or Db2 .
- IBM MQ classes for Java
- IBM MQ classes for Java enable you to use IBM MQ in a Java environment. IBM MQ classes for Java allow a Java application to connect to IBM MQ as an IBM MQ client, or connect directly to an IBM MQ queue manager.
Note:
IBM will make no further enhancements to the IBM MQ classes for Java and they are functionally stabilized at the level shipped in IBM MQ Version 8.0. Existing applications that use the IBM MQ classes for Java continue to be fully supported, but new features will not be added and requests for enhancements will be rejected. Fully supported means that defects will be fixed together with any changes necessitated by changes to IBM MQ System Requirements.
The IBM MQ classes for Java are not supported in IMS.
The IBM MQ classes for Java are not supported in WebSphere Liberty. They must not be used with either the IBM MQ Liberty messaging feature, or with the generic JCA support. For more information, see Use WebSphere MQ Java Interfaces in J2EE/JEE Environments.
- Use IBM MQ classes for JMS
IBM MQ classes for Java Message Service (IBM MQ classes for JMS) is the JMS provider that is supplied with IBM MQ. As well as implementing the interfaces defined in the javax.jms package, IBM MQ classes for JMS provides two sets of extensions to the JMS API. - Use IBM MQ classes for Java
Use IBM MQ in a Java environment. IBM MQ classes for Java allow a Java application to connect to IBM MQ as an IBM MQ client, or connect directly to an IBM MQ queue manager. - Use the IBM MQ resource adapter
The resource adapter allows applications that are running in an application server to access IBM MQ resources. It supports inbound and outbound communication. - Use IBM MQ and WebSphere Application Server together
Through the IBM MQ messaging provider in WebSphere Application Server, Java Message Service (JMS) messaging applications can use the IBM MQ system as an external provider of JMS messaging resources. - Use the IBM MQ Headers package
The IBM MQ Headers package provides a set of helper interfaces and classes used to manipulate the IBM MQ headers of a message. Typically, we use the IBM MQ Headers package because we want to perform administrative services by using the command server (by using Programmable Command Format (PCF) messages). - Set up IBM MQ on IBM i with Java and JMS
This collection of topics gives an overview of how you set up and test IBM MQ with Java and JMS on IBM i using CL commands or the qshell environment. - Java application development using a Maven repository
When developing a Java application for IBM MQ, by using a Maven repository to automatically install dependencies, we do not need to explicitly install anything before using IBM MQ interfaces.