rocketmq-4.6.0-simple message example

rocketmq-4.6.0-simple message example RocketMQ is used to send messages in three ways: reliable synchronization, reliable asynchronous and one-way transmission. Using RocketMQ to consume messages Add maven dependency <dependency> <groupId>org.apache.rocketmq</groupId> ...

Posted on Fri, 24 Jan 2020 09:41:30 -0500 by aim25

Talk about the push-pull mode of artemis message

order This paper mainly studies the push-pull mode of artemis messages Pull mode receive activemq-artemis-2.11.0/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessageConsumer.java public final class ActiveMQMessageConsumer implements QueueReceiver, TopicSubscriber { //...... @Override public Message ...

Posted on Fri, 24 Jan 2020 09:32:41 -0500 by wrathyimp

Chapter 6 HBase API Operations - Data Operations and Data Migration

Previous: Chapter 6 HBase API Operations (2) 1. Encapsulation of data Encapsulate data using multithreaded thread security First, create a tool class: HbaseUtil Code implementation: package studey.bigdate.util; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfig ...

Posted on Fri, 24 Jan 2020 02:00:18 -0500 by kuma

Install RocketMQ in a non docker way

Deployment and installation download Download address: https://www.apache.org/dyn/closer.cgi?path=rocketmq/4.3.2/rocketmq-all-4.3.2-bin-release.zip Current version: 4.3.2 Non Docker installation cd /haoke unzip rocketmq-all-4.3.2-bin-release.zip cd rocketmq-all-4.3.2-bin-release #Start nameserve ...

Posted on Thu, 23 Jan 2020 10:16:48 -0500 by skyxmen

ActiveMQ--NIO protocol configuration

NIO protocol configuration Modify the configuration file activemq.xml: <transportConectors> <transportConnector name="nio" uri="nio://0.0.0.0:61618?trace=true"/> </transportConectors> If you do not specifically specify the network listening ports for ActiveMQ, these ports will use ...

Posted on Wed, 22 Jan 2020 09:39:22 -0500 by Duey

JAVA -- a simple web crawler DEMO based on HttpComponents(HttpClient)

Basic concepts HttpComponents(HttpClient): Hypertext Transfer Protocol (HTTP) is probably the most important protocol used on the Internet today. The growth of Web services, network enabled devices and network computing continues to extend the role of HTTP protocol beyond user driven web browsers ...

Posted on Wed, 22 Jan 2020 09:26:54 -0500 by centered effect

Talk about artemis' ServerConnectionLifeCycleListener

order This paper focuses on the server connection life cycle listener of artemis BaseConnectionLifeCycleListener activemq-artemis-2.11.0/artemis-core-client/src/main/java/org/apache/activemq/artemis/spi/core/remoting/BaseConnectionLifeCycleListener.java public interface BaseConnectionLifeCycleListener<ProtocolClass> { void connectionC ...

Posted on Tue, 21 Jan 2020 09:53:27 -0500 by jeremywesselman

Dubbo------- Three ways of running a service

1. Running with a Servlet container (Tomcat, Jetty, etc.) is not recommended That is, make the project a web project, start spring in web.xml, and then start the dubbo service in spring.The dubbo service started with tomcat.However, this is not recommended because it adds complexity and wastes memory re ...

Posted on Mon, 20 Jan 2020 20:08:08 -0500 by codrgii

PDF file to picture save

1. Obtain the file according to the file path, and convert each page of the PDF file into a picture. Where you want to convert the picture to base64 format. /** * <p>Description PDF File to picture</p> * @author wumf * @date 2020 11:00:47 am, January 20, 2010 * @param Pdf ...

Posted on Mon, 20 Jan 2020 11:42:18 -0500 by jayshadow

Data receiving with servletcontextlistener socket

1. Create a ServletContextListener listener package com.chinalbs.common.utils; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import org.springframework.web.context.support.WebApplicationContextUtils; import com.chinalbs.business.service.EnvironprotectRealt ...

Posted on Mon, 20 Jan 2020 10:29:21 -0500 by lozza1978