首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

ActiveMQ 自带的JNDI兑现

2012-07-15 
ActiveMQ 自带的JNDI实现activeMQ的jndi配置居然是在客户端配置的,消息的生产者和消费者都需要配置jndi.pr

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

热点排行