1 46 package org.mr.api.jms; 47 48 import java.io.Serializable ; 49 50 import javax.jms.IllegalStateException ; 51 import javax.jms.JMSException ; 52 import javax.jms.TemporaryTopic ; 53 import javax.jms.Topic ; 54 import javax.jms.TopicSubscriber ; 55 56 57 87 public class MantaQueueSession extends MantaSession implements Serializable , javax.jms.QueueSession { 88 89 101 public MantaQueueSession(String clientID, MantaConnection con, boolean transactedMode, int acknowledgeMode) 102 throws JMSException { 103 super(clientID, con,acknowledgeMode,transactedMode); 105 106 } 108 109 113 public TopicSubscriber createDurableSubscriber(Topic topic, String name) throws JMSException { 114 throw new IllegalStateException ("MNJMS0006E : UNALLOWED OPERATION : createDurableSubscriber() ON A QUEUE SESSION."); 115 116 } 117 118 122 public TopicSubscriber createDurableSubscriber(Topic topic, String name, String messageSelector, boolean noLocal) throws JMSException { 123 throw new IllegalStateException ("MNJMS0006E : UNALLOWED OPERATION : createDurableSubscriber() ON A QUEUE SESSION."); 124 } 125 126 130 public TemporaryTopic createTemporaryTopic() throws JMSException { 131 throw new IllegalStateException ("MNJMS0006F : UNALLOWED OPERATION : createTemporaryTopic() ON A QUEUE SESSION."); 132 } 133 134 138 public Topic createTopic(String topicName) throws JMSException { 139 throw new IllegalStateException ("MNJMS00070 : UNALLOWED OPERATION : createTopic() ON A QUEUE SESSION."); 140 } 141 142 146 public void unsubscribe(String name) throws JMSException { 147 throw new IllegalStateException ("MNJMS00071 : UNALLOWED OPERATION : unsubscribe() ON A QUEUE SESSION."); 148 149 } 150 151 152 } | Popular Tags |