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.Queue ; 53 import javax.jms.QueueBrowser ; 54 import javax.jms.TemporaryQueue ; 55 56 83 public class MantaTopicSession extends MantaSession implements Serializable , javax.jms.TopicSession { 84 85 94 public MantaTopicSession(String clientId, MantaConnection con, boolean transactedMode, int acknowledgeMode) 95 throws JMSException { 96 super(clientId,con,acknowledgeMode,transactedMode); 97 } 99 100 103 104 105 108 public Queue createQueue(String queueName) throws JMSException { 109 throw new IllegalStateException ("MNJMS000B1 : FAILED ON METHOD createQueue(). ILLEGAL CALL FROM A TOPIC SESSION."); 110 } 111 112 115 public QueueBrowser createBrowser(Queue queue) throws JMSException { 116 117 throw new IllegalStateException ("MNJMS000B2 : FAILED ON METHOD createBrowser(). ILLEGAL CALL FROM A TOPIC SESSION."); 118 } 119 120 123 public QueueBrowser createBrowser(Queue queue, String messageSelector) throws JMSException { 124 throw new IllegalStateException ("MNJMS000B2 : FAILED ON METHOD createBrowser(). ILLEGAL CALL FROM A TOPIC SESSION."); 125 } 126 127 130 public TemporaryQueue createTemporaryQueue() throws JMSException { 131 throw new IllegalStateException ("MNJMS000B3 : FAILED ON METHOD createTemporaryQueue(). ILLEGAL CALL FROM A TOPIC SESSION."); 132 } 133 } | Popular Tags |