1 package net.walend.somnifugi; 2 3 import javax.naming.Context ; 4 5 import javax.jms.TemporaryQueue ; 6 import javax.jms.JMSException ; 7 import javax.jms.Message ; 8 9 import net.walend.somnifugi.channel.ChannelFactory; 10 11 16 17 public class SomniTemporaryQueue 18 extends SomniQueue 19 implements TemporaryQueue 20 { 21 private static final long serialVersionUID = 0L; 22 23 protected SomniTemporaryQueue(String name,ChannelFactory<Message > factory,Context context) 24 throws SomniNamingException 25 { 26 super(name,factory,context); 27 } 28 29 public void delete() 31 throws JMSException 32 { 33 SomniQueueCache.IT.removeQueue(getQueueName()); 34 } 35 36 } 37 38 58 | Popular Tags |