随笔分类 -  JMS/ActiveMQ

ActiveMQ(5.10.0) - Message Redelivery and DLQ Handling
摘要:When messages expire on the ActiveMQ broker (they exceed their time-to-live, if set) or can’t be redelivered, they’re moved to a dead-letter queue, so... 阅读全文
posted @ 2016-01-19 19:18 huey2672 阅读(1686) 评论(1) 推荐(0)
ActiveMQ(5.10.0) - Connection Configuration URI
摘要:An Apache ActiveMQ connection can be configured by explicitly setting properties on the ActiveMQConnection or ActiveMQConnectionFactory objects themse... 阅读全文
posted @ 2016-01-19 14:58 huey2672 阅读(500) 评论(0) 推荐(0)
ActiveMQ(5.10.0) - Spring Support
摘要:MavenDependency: org.apache.activemq activemq-all ${activemq.version} org.apache.activemq activemq-jaas... 阅读全文
posted @ 2016-01-15 11:39 huey2672 阅读(395) 评论(0) 推荐(0)
ActiveMQ(5.10.0) - Wildcards and composite destinations
摘要:In this section we’ll look at two useful features of ActiveMQ: subscribing to multiple destinations using wildcards, and publishing to multiple destin... 阅读全文
posted @ 2016-01-14 19:09 huey2672 阅读(651) 评论(0) 推荐(0)
ActiveMQ(5.10.0) - Building a custom security plug-in
摘要:If none of any built-in security mechanisms works for you, you can always build your own. Though these features should provide enough functionality fo... 阅读全文
posted @ 2016-01-14 12:35 huey2672 阅读(434) 评论(0) 推荐(0)
ActiveMQ(5.10.0) - Destination-level authorization
摘要:To build upon authentication, consider a use case requiring more fine-grained control over clients to authorize certain tasks. ActiveMQ provides two l... 阅读全文
posted @ 2016-01-13 18:28 huey2672 阅读(352) 评论(0) 推荐(0)
ActiveMQ(5.10.0) - Configuring the JAAS Authentication Plug-in
摘要:JAAS provides pluggable authentication, which means ActiveMQ will use the same authentication API regardless of the technique used to verify user cred 阅读全文
posted @ 2016-01-13 18:09 huey2672 阅读(665) 评论(0) 推荐(0)
ActiveMQ(5.10.0) - Configuring the Simple Authentication Plug-in
摘要:The easiest way to secure the broker is through the use of authentication credentials placed directly in the broker’s XML configuration file. Such fun 阅读全文
posted @ 2016-01-13 11:50 huey2672 阅读(392) 评论(0) 推荐(0)
ActiveMQ(5.10.0) - 删除闲置的队列或主题
摘要:方法一通过 ActiveMQ Web 控制台删除。方法二通过 Java 代码删除。ActiveMQConnection.destroyDestination(ActiveMQDestination destination)方法三通过配置 conf/activemq.xml,当broker 探测到闲置... 阅读全文
posted @ 2016-01-10 11:07 huey2672 阅读(4744) 评论(1) 推荐(0)
ActiveMQ(5.10.0) - 使用 JDBC 持久化消息
摘要:1. 编辑 ACTIVEMQ_HOME/conf/activemq.xml。 2. 在ACTIVEMQ_HOME/li... 阅读全文
posted @ 2015-08-27 14:09 huey2672 阅读(779) 评论(0) 推荐(0)
ActiveMQ(5.10.0) - JNDI Support
摘要:1. Place the jndi.properties file on the classpath.java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory # use the foll... 阅读全文
posted @ 2015-08-21 18:51 huey2672 阅读(394) 评论(0) 推荐(0)
ActiveMQ(5.10.0) - hello world
摘要:Sending a JMS messagepublic class MyMessageProducer { ... // 创建连接工厂实例 ConnectionFactory connFactory = new ActiveMQConnectionFactory( ... 阅读全文
posted @ 2015-07-28 13:58 huey2672 阅读(380) 评论(0) 推荐(0)
ActiveMQ 的安装
摘要:1.在 http://activemq.apache.org/ 下载 ActiveMQ。Windows 系统选择下载 apache-activemq-x.x.x-bin.zip,Unix/Linux 系统下载apache-activemq-x.xx.x-bin.tar.gz[huey@huey-K4... 阅读全文
posted @ 2015-07-27 21:57 huey2672 阅读(238) 评论(0) 推荐(0)