随笔分类 -  JMS

1 2 下一页
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)
JMS - Exceptions
摘要:The JMSExceptionJMS defines JMSException as the root class for exceptions thrown by JMS methods. JMSException is a checked exception and catching it p... 阅读全文
posted @ 2016-01-10 23:31 huey2672 阅读(524) 评论(0) 推荐(0)
JMS - Temporary Destination
摘要:Although sessions are used to create temporary destinations, this is only for convenience. Their scope is actually the entire connection. Their lifeti... 阅读全文
posted @ 2016-01-10 20:00 huey2672 阅读(268) 评论(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)
JMS - 事务性消息
摘要:JMS 事务遵从发送操作与接收操作相互分离的约定。下图显示的是一个事务性发送,其中一组消息要么能够保证全部到达消息服务器,要么连一条消息也不能保证到达消息服务器。从发送者的角度来看,JMS 提供者为这组消息提供了高速缓存,直到执行 commit() 为止。如果发生了故障,或者执行了 rollback... 阅读全文
posted @ 2016-01-10 00:12 huey2672 阅读(2258) 评论(0) 推荐(0)
JMS - ExceptionListener
摘要:If a JMS provider detects a problem with a connection, it will inform the connection’s ExceptionListener, if one has been registered. To retrieve an E... 阅读全文
posted @ 2016-01-09 18:59 huey2672 阅读(1077) 评论(0) 推荐(0)
JMS - ConnectionMetaData
摘要:A Connection provides a ConnectionMetaData object. This object provides the latest version of JMS supported by the provider as well as the provider’s ... 阅读全文
posted @ 2016-01-09 17:04 huey2672 阅读(325) 评论(0) 推荐(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)
JMS - 消息确认
摘要:消息确认机制 消息确认协议是保证消息传送的关键所在,同时,支持确认也是 JMS API 语义的要求。以下将分别从消息生产者、消息服务器、消息消费者的角度,来考察消息确认机制。从消息生产者的角度考察 在表象之下,TopicPublisher.publish() 或 QueueSender.send... 阅读全文
posted @ 2015-08-24 20:56 huey2672 阅读(348) 评论(0) 推荐(0)
JMS - 消息选择器
摘要:消息选择器 将消息选择器应用在消费者,消费者就只会接受能通过过滤器的消息。消息选择器是基于 SQL-92 条件表达式语法的一个子集。消息选择器由三个元素组成:标识符、常量和标记运算符。标识符 标识符就是表达式中被比较的那一部分。标识符必须是消息属性或者若干 JMS 消息头之一。 可以用作标识符... 阅读全文
posted @ 2015-08-22 17:13 huey2672 阅读(585) 评论(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)
JMS - QueueBrowser
摘要:QueueBrowser 是一个专用对象,提供提前浏览 Queue 上的排队消息的功能,而实际上并没有真正消费这些消息。这是点对点消息传送模型的独有特性。从 QueueBrowser 获得消息是该队列中消息的副本,而且并未认为会被消费——它们仅是用于浏览而已。还有,QueueBrowser 并不... 阅读全文
posted @ 2015-08-21 18:36 huey2672 阅读(957) 评论(0) 推荐(1)
JMS - Message
摘要:一条 JMS 消息包含三个部分:消息头、消息属性和消息体。消息头 消息头提供了和消息有关的元数据,它描述了消息有谁创建、何时创建、数据的有效长度等信息。消息头还包含了描述消息目的地(主题或队列)的路由信息、消息如何被确认等另外一些信息。JMSDestination JMSDestination ... 阅读全文
posted @ 2015-08-19 15:39 huey2672 阅读(922) 评论(0) 推荐(0)

1 2 下一页