Java Message Service is an API for exchanging messages between applications. ReadyAPI supports JMS messaging, so you can send and receive both text and binary messages.
To test JMS services, you need to do the following:
-
Configure a JMS provider. The following topics provide information on how to configure some popular JMS providers:
-
Establish a connection to the provider. In ReadyAPI, you can do it in the following ways:
ReadyAPI does not support using HermesJMS as a JMS connector starting with version 3.1.
If you use an earlier version of ReadyAPI, we still strongly recommend that you connect using one of the methods above because HermesJMS is no longer maintained by its developer. -
Then, you can send JMS requests. The preferred way of sending JMS requests in ReadyAPI is using a JMS Request. Besides that, you can:
-
Use a SOAP Request to send an attachment as TextMessage or BytesMessage to a JMS endpoint.
-
Use a REST Request to send an attachment as TextMessage or BytesMessage to a JMS endpoint.
-
Use an HTTP Request to send an attachment as TextMessage or BytesMessage to a JMS endpoint.
Also, you can emulate a JMS server by using the JMS virtual services.
-