Summary: This document provides basic information about the extension providing Message Queues support for JAVA.
Changes in 1.0.0-beta2 & 1.0.0-funcrel:
- Support for Spring AMQP RabbitMQ with SpringBoot for Direct, Topic, Fanout exchanges along with Default exchange
- Support for RabbitMQ with SpringBoot when the listener is configured using Message Listener Adapter or annotations.
- Support for ActiveMQ when JNDI is used to store Queuename.
- Support for ActiveMQ with SpringBoot(when queue is autowired in different file).
Changes in 1.0.0-beta1:
- Support for ActiveMQ with Spring JMS (XML based configuration and Annotation based configuration)
- Support for RabbitMQ with Spring AMQP (XML based configuration) for Direct, Topic, Fanout exchanges along with Default exchange
- Support for RabbitMQ with SpringBoot( Annotation based configuration) for Default exchange
Changes in 1.0.0-alpha1 & 1.0.0-alpha2:
- Support ActiveMQ with OpenWire + JMS for Plain Java
- Support RabbitMQ with AMQP + SLF4J for Plain JAVA for only Default exchange
This extension provides support for Message Queues for Plain Java and Spring (XML based configuration and Annotation based configuration).
In what situation should you install this extension?
This extension should be installed when analyzing a Java project containing Message Queue applications, and wanting to view a transaction consisting of queue call and queue receive objects with their corresponding links. This version supports Plain Java and Spring (XML based configuration and Annotation based configuration) for both ActiveMQ and RabbitMQ.
Supported Message Queue versions
The following table displays the supported versions matrix:
|OpenWire + JMS
|Spring + JMS with XML based configuration
|JMS with SpringBoot
|AMQP + SLF4J
|Spring AMQP + Spring Rabbit with XML based configuration
|Spring AMQP with SpringBoot
CAST AIP Compatibility
|CAST AIP release
|7.3.4 and all higher 7.3.x releases
Supported DBMS servers
This extension is compatible with the following DBMS servers:
CAST AIP release
|All supported releases
|An installation of any compatible release of CAST AIP (see table above)
Dependencies with other extensions
- Web Services Linker
- CAST AIP Internal extension ((internal technical extension)
Note that when using the CAST Extension Downloader to download the extension and the Manage Extensions interface in CAST Server Manager to install the extension, any dependent extensions are automatically downloaded and installed for you. You do not need to do anything.
Download and installation instructions
The latest release status of this extension can be seen when downloading it from the CAST Extend server.
Packaging, delivering and analyzing your source code
Once the extension is installed, no further configuration changes are required before you can package your source code and run an analysis. The process of packaging, delivering and analyzing your source code is as follows:
Packaging and delivery
Note that the Message Queues extension does not contain any CAST Delivery Manager Tool discoverers or extractors, therefore, no "Message Queue" projects will be detected by the DMT. You therefore need to manually create an Analysis Unit in the CAST Management Studio - this is explained below.
Using the CAST Delivery Manager Tool:
- Create a new Version
- Create a new Package for your Message Queue source code using the Files on your file system option:
- Define a name for the package and the root folder of your Application source code:
- Run the Package action: the CAST Delivery Manager Tool will not find any "projects" related to the Message Queue application source code - this is the expected behavior. However, if your Java related source code is part of a larger application, then other projects may be found during the package action.
- Deliver the Version
Using the CAST Management Studio:
- Accept and deploy the Version in the CAST Management Studio. No Analysis Units will be created automatically relating to the Java source code - this is the expected behavior. However, if your Message Queue related source code is part of a larger application, then other Analysis Units may be created automatically:
- In the Current Version tab, add a new Analysis Unit specifically for your Java source code containing Message Queues, selecting the Add new J2EE Analysis Unit option:
- Run a test analysis on the Analysis Unit before you generate a new snapshot.
What results can you expect?
Once the analysis/snapshot generation has completed, you can view the results in the normal manner:
Below are the transactions obtained after analysis:
Many-to-Many : ActiveMQ
Producer/Consumer in same file:ActiveMQ
One to Many: RabbitMQ Topic Exchange bound to two Queues
RabbitMQ : Sender using Default Exchange to send message to Queue
The following specific objects are displayed in CAST Enlighten:
|ActiveMQ Producer Queue Call, RabbitMQ Exchange
ActiveMQ Consumer Queue Receive, RabbitMQ Queue
For ActiveMQ, Call link is created between:
- Producer method object and Queue Call object, at the analyser level
- Consumer method object and Queue Receive object, at the analyser level
- Queue Call object and Queue Receive object, at the Application level by Web Services Linker
For RabbitMQ, Call link is created between:
- Producer method object and RabbitMQ Exchange object, at the analyser level
- Consumer method object and RabbitMQ Queue object, at the analyser level/application level
- RabbitMQ Exchange object and RabbitMQ Queue object, at the application level by Web Services Linker
Example of ActiveMQ Producer(Spring-XML)
Example of ActiveMQ Producer(Springboot) :
Example of ActiveMQ Consumer(Springboot):
Example of ActiveMQ- JNDI is used to store Queue
Example of Spring AMQP RabbitMQ Producer:
Example of Spring AMQP RabbitMQ Consumer:
Example of SpringBoot RabbitMQ Exchange-Queue Binding configuration:
Example of Spring AMQP RabbitMQ XML based configuration:
The following cases are not handled:
- When the queue name is given at the runtime i.e. when Queue name is not initialized anywhere in the code and is given dynamically during the session/connection