读书人

ActiveMQ 自带的JNDI兑现

发布时间: 2012-07-15 20:20:06 作者: rapoo

ActiveMQ 自带的JNDI实现
activeMQ的jndi配置居然是在客户端配置的,消息的生产者和消费者都需要配置jndi.properties, 配置绑定相同主题或队列,除非使用“Dynamically creating destinations”方式。




从网上搜到一个解释:




Another approach is using Spring to avoid depending on a remote,
distributed JNDI provider. But if you really wanna use a distributed
JNDI provider just pick one you want and put the ActiveMQ administered
objects (queues, topics and connection factories) in there. Pretty
much all J2EE containers come with some remote JNDI server
implementation.

--
James

http://activemq.apache.org/jndi-support.html
http://activemq.2283324.n4.nabble.com/ActiveMQ-JNDI-support-only-for-testing-td2363888.html

读书人网 >软件架构设计

热点推荐