'activemq'에 해당되는 글 2

  1. 2021.01.30 HornetQ를 찾아서, ActiveMQ-Artemis
  2. 2015.06.12 ActiveMQ

HornetQ를 찾아서, ActiveMQ-Artemis

STS - Spring Starter Project 에서 HornetQ 의존성이 안보임.
Spring Boot JMS를 HornetQ 로 임베딩해서 하고 싶음.

스프링 부트 1.5에서 HornetQ와 벨로시티 Velocity서포트가 제거되었다고 함(deprecated)
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.5-Release-Notes#deprecations-from-spring-boot-14

HornetQ가 ActiveMQ-Artemis로 옮긴(?) 글을 봤음.
https://hornetq.jboss.org/
HornetQ has been donated to the Apache ActiveMQ community!
릴리즈도 2.4.0.Final, 2013/12/16 이 마지막

Artemis가 릴리즈 되었음.
HornetQ Apache donation and Apache Artemis 1.0.0 release
Monday, 1 June 2015

Artemis는 ActiveMQ와 무슨 관계냐... 

Apache ActiveMQ에 소개된 내용, Artemis가 향후 ActiveMQ 6로 된다고 함.
There are currently two "flavors" of ActiveMQ available - the "classic" 5.x broker and the "next generation" Artemis broker. Once Artemis reaches a sufficient level of feature parity with the 5.x code-base it will become ActiveMQ 6. Initial migration documentation is available.

어쨌든 Artemis를 사용하면 될 거 같다.
STS에서 Artemis 의존성이 보임.

끝~


ActiveMQ

오픈소스 메시징/통합패턴 서버

다양한 언어 지원
STOMP, AMQP, MQTT
JMS 1.1 and J2EE 1.4


- 2015-06-12 현재 apache-activemq-5.11.1가 최신

그런데 실행이 안됨. 에러도 발생 안함.

apache-activemq-5.11.1> bin\activemq
Java Runtime: Oracle Corporation 1.7.0_09 C:\Program Files\Java\jdk1.7.0_09\jre
  Heap sizes: current=1013632k  free=996854k  max=1013632k
    JVM args: -Dcom.sun.management.jmxremote -Xms1G -Xmx1G ...

Extensions classpath:
  [...]
ACTIVEMQ_HOME: ...\apache-activemq-5.11.1\bin\..
ACTIVEMQ_BASE: ...\apache-activemq-5.11.1\bin\..
ACTIVEMQ_CONF: ...\apache-activemq-5.11.1\bin\..\conf
ACTIVEMQ_DATA: ...\apache-activemq-5.11.1\bin\..\data
Usage: Main [--extdir <dir>] [task] [task-options] [task data]

Tasks:
    browse                   - Display selected messages in a specified destination.
    bstat                    - Performs a predefined query that displays useful statistics regarding the specified broker
    create                   - Creates a runnable broker instance in the specified path.
    decrypt                  - Decrypts given text
    dstat                    - Performs a predefined query that displays useful tabular statistics regarding the specified destina
tion type
    encrypt                  - Encrypts given text
    export                   - Exports a stopped brokers data files to an archive file
    list                     - Lists all available brokers in the specified JMX context
    purge                    - Delete selected destination's messages that matches the message selector
    query                    - Display selected broker component's attributes and statistics.
    start                    - Creates and starts a broker using a configuration file, or a broker URI.
    stop                     - Stops a running broker specified by the broker name.

Task Options (Options specific to each task):
    --extdir <dir>  - Add the jar files in the directory to the classpath.
    --version       - Display the version information.
    -h,-?,--help    - Display this help information. To display task specific help, use Main [task] -h,-?,--help

Task Data:
    - Information needed by each specific task.

JMX system property options:
    -Dactivemq.jmx.url=<jmx service uri> (default is: 'service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi')
    -Dactivemq.jmx.user=<user name>
    -Dactivemq.jmx.password=<password>


확인 결과 5.10.0부터 발생

5.9.1은 제대로 실행됨.

apache-activemq-5.9.1> bin\activemq
Java Runtime: Oracle Corporation 1.7.0_09 C:\Program Files\Java\jdk1.7.0_09\jre
  Heap sizes: current=1013632k  free=996854k  max=1013632k
    JVM args: -Dcom.sun.management.jmxremote -Xms1G -Xmx1G ...
Extensions classpath:
  [...]
ACTIVEMQ_HOME: ...\apache-activemq-5.9.1\bin\..
ACTIVEMQ_BASE: ...\apache-activemq-5.9.1\bin\..
ACTIVEMQ_CONF: ...\apache-activemq-5.9.1\bin\..\conf
ACTIVEMQ_DATA: ...\apache-activemq-5.9.1\bin\..\data
Loading message broker from: xbean:activemq.xml
 INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@e34a3c: startup date [Fri Jun 12 22:51:42 KST 2015]; root of con
text hierarchy
 INFO | PListStore:[...\apache-activemq-5.9.1\bin\..\data\localhost\tmp_storage] started
 INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[...\apache-activemq-5.9.1\bin\.
.\data\kahadb]
 INFO | Apache ActiveMQ 5.9.1 (localhost, ID:pantarei-PC-20301-1434117106014-0:1) is starting
 INFO | Listening for connections at: tcp://...:61616?maximumConnections=...
 INFO | Connector openwire started
 INFO | Listening for connections at: amqp://...:5672?maximumConnections=...
 INFO | Connector amqp started
 INFO | Listening for connections at: stomp://...:61613?maximumConnections=...
 INFO | Connector stomp started
 INFO | Listening for connections at: mqtt://...:1883?maximumConnections=...
 INFO | Connector mqtt started
 INFO | Listening for connections at ws://...:61614?maximumConnections=...
 INFO | Connector ws started
 INFO | Apache ActiveMQ 5.9.1 (localhost, ID:...-20301-1434117106014-0:1) started
 INFO | For help or more information please see: http://activemq.apache.org
 WARN | Store limit is 102400 mb (current store usage is 0 mb). The data directory: ...\apa
che-activemq-5.9.1\bin\..\data\kahadb only has 31427 mb of usable space - resetting to maximum available disk space: 31427 mb
ERROR | Temporary Store limit is 51200 mb, whilst the temporary data directory: ...\apache-
activemq-5.9.1\bin\..\data\localhost\tmp_storage only has 31427 mb of usable space - resetting to maximum available 31427 mb.
 INFO | ActiveMQ WebConsole available at http://localhost:8161/
 INFO | Initializing Spring FrameworkServlet 'dispatcher'
 INFO | jolokia-agent: No access restrictor found at classpath:/jolokia-access.xml, access to all MBeans is allowed


http://localhost:8161/


- 데모

http://activemq.apache.org/web-samples.html

apache-activemq-5.9.1> bin\activemq xbean:examples/conf/activemq-demo.xml


http://localhost:8161/demo