ActiveMQ的启动和配置介绍
来源:互联网 发布:邢山虎 知乎 编辑:程序博客网 时间:2024/06/05 08:26
原文地址:http://activemq.apache.org/version-5-getting-started.html
Starting ActiveMQ with a different configuration file
By default ActiveMQ uses the conf/activemq.xml
as the main configuration file when starting. If you want to use a different configuration file you can specify this as a parameter.
ActiveMQ 5.8 or older
For example to use conf/activemq-demo.xml
which includes the web demos, you do as follows:
bin/activemq console xbean:conf/activemq-demo.xml
To start Active in console mode and load the conf/activemq-demo.xml
file. Yes you need the xbean:
as prefix.
And to launch as a background process you can do:
bin/activemq start xbean:conf/activemq-demo.xml
ActiveMQ 5.9 onwards
For example to use examples/conf/activemq-demo.xml
which includes the web demos, you do as follows:
bin/activemq console xbean:examples/conf/activemq-demo.xml
To start Active in console mode and load the examples/conf/activemq-demo.xml
file. Yes you need the xbean:
as prefix.
And to launch as a background process you can do:
bin/activemq start xbean:examples/conf/activemq-demo.xml
Configuring ActiveMQ
The ActiveMQ broker should now run. You can configure the broker by specifying an Xml Configuration file as a parameter to the activemq command. An alternative is to use the Broker Configuration URI to configure things on the command line in a concise format (though the configuration options are not as extensive as if you use Java or XML code). You can also
Also see Configuring Transports to see how you can configure the various connection, transport and broker options using the connection URL in the ActiveMQConnectionFactory.
See the Initial Configuration for details of which jars you need to add to your classpath to start using ActiveMQ in your Java code
If you want to use JNDI to connect to your JMS provider then please view the JNDI Support. If you are a Spring user you should read about Spring Support
After the installation, ActiveMQ is running with a basic configuration. For details on configuring options, please see refer to the Configuration section.
Additional Resources
If you are new to using ActiveMQ, running the Web Samples or the Examples is a good next step to learn more about ActiveMQ.
- ActiveMQ的启动和配置介绍
- ActiveMQ的安装和启动
- ActiveMQ的安装和配置
- ActiveMQ的安装和启动 安装JAVA配置JAVA环境 下载ActiveMQ 解压压缩包 tar zxvf activemq-x.x.x-bin.tar.gz 至此,linux下Activ
- 2 activeMQ的安装和启动
- Linux下activeMQ的安装和启动
- Linux下activeMQ的安装和启动
- 1,ActiveMQ的下载,安装和启动
- 中间件activeMQ的使用和介绍
- ActiveMQ的简单介绍和安装
- ActiveMQ安装和启动
- activemq安装和启动
- ActiveMQ 介绍和学习
- ActiveMQ和JMS介绍
- activeMQ配置开机启动 linux
- Activemq的安装启动
- ActiveMQ的介绍
- ActiveMQ之三:启动ActiveMQ的Broker
- JAVA开发11--获取系统当前时间和简单的时间差
- 5.导航条、分页导航
- Flume 安装, 测试
- mac修改mysql密码
- FindBugs 插件使用
- ActiveMQ的启动和配置介绍
- 数据结构第四次作业(二叉树的基本操作实现)
- 树和二叉树
- 引用和指针的区别
- iOS视频播放的四种方案
- 智力游戏
- POJ 2437 贪心+priority_queue
- DOM对象与JQuery对象
- postgresql 中的外键