Developing JMS applications
The Java™ Message Service (JMS) is a Java API that allows applications to create, send, receive, and read messages. The JMS API defines a common set of interfaces and associated semantics that allow programs that are written in the Java programming language to communicate with other messaging implementations.
The Eclipse Amlen resource adapter is available as part of the JMS client download. The JMS client can be obtained from the IBM® IoT MessageSight page on developerWorks®.
Why use JMS?
There are benefits to using JMS as the API to write an Eclipse Amlen ready application. Some advantages derive from JMS being an open standard with multiple implementations. Using an open standard provides the following benefits:
- The protection of investment, both in skills and application code.
- The availability of people skilled in JMS application programming.
- The ability to plug in different JMS implementations to fit different requirements.
- JMS can support more message types than MQTT. Additionally, JMS messages can be configured to include more information than MQTT messages by using message properties. This extra information can be useful when more complex business logic is required in enterprise messaging applications.
- JMS supports message selectors. Message selectors enable JMS consumer applications to filter the messages that are received from a topic or a queue.
JMS applications that use Eclipse Amlen extensions to the JMS 1.1 specification can be compiled and run only with Eclipse Amlen JMS client implementations. For example, support in Eclipse Amlen for shared subscriptions is an extension to version 1.1 of the JMS specification. If you use this feature in your JMS applications, you will need to compile these applications using the Eclipse Amlen JMS client.
${ClientID}
, ${UserID}
,
or ${CommonName}
keywords in your applications. These
keywords are used in connection policies and messaging policies to
control access to Eclipse Amlen.
Using these keywords in your application can lead to policy validation
failures.In addition to support for stand-alone JMS client applications (Java SE applications), Eclipse Amlen provides a JMS resource adapter to support Java EE applications on WebSphere® Application Server. For more information about the JMS resource adapter, see Eclipse Amlen resource adapter.