1 28 29 package com.caucho.jms.session; 30 31 import com.caucho.jms.ConnectionFactoryImpl; 32 33 import javax.jms.*; 34 import javax.jms.IllegalStateException ; 35 36 39 public class TopicConnectionImpl extends ConnectionImpl 40 implements TopicConnection { 41 44 public TopicConnectionImpl(ConnectionFactoryImpl factory) 45 { 46 super(factory); 47 } 48 49 52 public ConnectionConsumer 53 createConnectionConsumer(Topic topic, String messageSelector, 54 ServerSessionPool sessionPool, int maxMessages) 55 throws JMSException 56 { 57 throw new UnsupportedOperationException (); 58 } 59 60 63 public ConnectionConsumer 64 createDurableConnectionConsumer(Topic topic, String name, 65 String messageSelector, 66 ServerSessionPool sessionPool, 67 int maxMessages) 68 throws JMSException 69 { 70 throw new UnsupportedOperationException (); 71 } 72 73 76 public TopicSession createTopicSession(boolean transacted, 77 int acknowledgeMode) 78 throws JMSException 79 { 80 if (_isClosed) 81 throw new IllegalStateException (L.l("connection is closed")); 82 83 assignClientID(); 84 85 checkOpen(); 86 87 return new TopicSessionImpl(this, transacted, acknowledgeMode); 88 } 89 } 90 | Popular Tags |