How to use activeMQ elegantly

First of all, I am a beginner in activemq. I also read a lot of blogs during my study. I am very grateful to the csdn blog for giving me inspiration. I hope my creation can be helpful to everyone. 1. Add the maven dependency package, not much to say, just go to the code […]

Spring Boot integrates ActiveMQ

Spring Boot integrates ActiveMQ This article mainly explains how to use JMS to integrate ActiveMQ in Spring Boot. Add dependencies First add dependencies: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-activemq</artifactId> <version>3.1.5</version> </dependency> Add configuration Add the following configuration in Spring Boot’s bootstrap.properties spring.activemq.broker-url=tcp://127.0.0.1:61616 spring.activemq.user=admin spring.activemq.password=admin spring.activemq.in-memory=false spring.activemq.pool.enabled=false spring.activemq.pool.max-connections=5 spring.activemq.pool.idle-timeout=30000 spring.activemq.pool.expiry-timeout=0 spring.activemq.send-timeout=1000 The above configuration means: spring.activemq.broker-url=tcp://127.0.0.1:61616: This is the […]

Apache ActiveMQ remote code execution vulnerability recurrence (CNVD-2023-69477)

Apache ActiveMQ remote code execution RCE vulnerability recurrence (CNVD-2023-69477) The vulnerability that was discovered last week is a good time to reproduce it and record it. 1. Vulnerability description ? A remote code execution vulnerability exists in Apache ActiveMQ. A remote attacker with access to the Apache ActiveMQ server TCP port (default is 61616) can […]

Vulnerability Analysis | Apache ActiveMQ RCE Vulnerability Reproduction (CNVD-2023-69477)

1. Vulnerability description ActiveMQ is an open source message broker and integrated mode server that supports the Java Message Service (JMS) API. It is a project under the Apache Software Foundation and is used to implement message middleware to help communication between different applications or systems. There is a remote code execution vulnerability in Apache […]

Recurrence of ActiveMQ deserialization vulnerability (CVE-2015-5254)

1 Introduction 1.1 ActiveMQ Apache ActiveMQ is an open source messaging middleware developed by the American Apache Software Foundation. It supports Java messaging services, clusters, Spring framework, etc. It belongs to the message queue component (message queue component: an important component in a distributed system, which mainly solves application coupling, asynchronous messages, traffic peak cutting, […]

Docker-compose installation and use (self-starting, redis, mysql, rabbitmq, activemq, es, nginx, java applications)

1. Install docker-compose online: Refer to the official website: https://docs.docker.com/compose/install/other/ Docker-compose installation and simple introduction [Docker] docker-compose usage tutorial Docker series tutorial 22-docker-compose.yml common commands # Installation (accelerate download https://ghproxy.com/) sudo curl -L https://ghproxy.com/https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-linux-x86_64 -o /usr/local/bin/docker- compose # empower sudo chmod +x /usr/local/bin/docker-compose # View version docker-compose -v # Help is available docker-compose -h 2. […]

Solve the problem of JMSException: ClassNotFoundException when consuming ActiveMQ queue

The requirement development was completed and tested. During the test, it was found that when the listener of activemq was consuming queue messages, the program caught an exception. See the log below.The exception information is obvious, the class com.cn.yft.ora.entity.TAccReviewRecord does not exist. Looking at this ClassNotFoundException exception, I thought that it had also appeared when […]

Golang implements UDPServer and sends messages to ActiveMQ

Sample code package main import ( “net” “os” “github.com/gpmgo/gopm/modules/goconfig” “github.com/go-stomp/stomp” “time” “strconv” “log” “strings” ) //Limit the number of goroutines var limitChan = make(chan bool, 10000) // Todo reads from the configuration file //Limit the number of messages processed simultaneously var msgChan = make(chan string, 10000) // Todo reads from the configuration file var activeMqLimitedChan […]

SpringBoot integrates ActiveMQ [super detailed version]

Table of Contents Introduction What is ActiveMQ The concept of JMS Install and run ActiveMQ in linux Enter the activemq management page SpringBoot integrates ActiveMQ-queue mode producer pom dependency Configure yml Startup class Configure channels Test sending information into the channel recipient pom dependency yml configuration Startup class Accept mq class SpringBoot integrates ActiveMQ-topic mode […]