1 package net.walend.somnifugi; 2 3 import javax.naming.Referenceable ; 4 import javax.naming.Reference ; 5 import javax.naming.NamingException ; 6 import javax.naming.Context ; 7 8 import javax.jms.TemporaryTopic ; 9 import javax.jms.JMSException ; 10 import javax.jms.Message ; 11 12 import net.walend.somnifugi.channel.ChannelFactory; 13 import net.walend.somnifugi.channel.FanOutFactory; 14 15 20 21 public class SomniTemporaryTopic 22 extends SomniTopic 23 implements TemporaryTopic 24 { 25 private static final long serialVersionUID = 0L; 26 27 protected SomniTemporaryTopic(String name,ChannelFactory<Message > factory,FanOutFactory<Message > fanOutFactory,Context context) 28 throws SomniNamingException 29 { 30 super(name,factory,fanOutFactory,context); 31 } 32 33 public void delete() 35 throws JMSException 36 { 37 SomniTopicCache.IT.removeTopic(getTopicName()); 38 } 39 40 } 41 42 62 | Popular Tags |