001package gu.simplemq.activemq;
002
003import javax.jms.Destination;
004import javax.jms.JMSException;
005
006/**
007 * ACTIVEMQ 消息订阅实现(线程安全)<br>
008 * 每个 {@link ActivemqPoolLazy} 实例对应保持一个 {@link ActivemqSubscriber} 对象<br>
009 * 对象可以复用(反复打开关闭) <br>
010 * @author guyadong
011 *
012 */
013public class ActivemqSubscriber extends BaseActivemqDispatcher {
014        ActivemqSubscriber(ActivemqPoolLazy pool) {
015                super(pool);
016        }
017
018        @Override
019        protected Destination makeDestination(String name) throws JMSException {
020                return getSession().createTopic(name);
021        }
022        
023}