1 24 package org.objectweb.joram.client.jms; 25 26 import javax.jms.JMSException ; 27 import javax.jms.IllegalStateException ; 28 29 import org.objectweb.joram.client.jms.connection.RequestChannel; 30 31 34 public class TopicConnection extends Connection 35 implements javax.jms.TopicConnection { 36 37 46 public TopicConnection(FactoryParameters factoryParameters, 47 RequestChannel requestChannel) 48 throws JMSException { 49 super(factoryParameters, requestChannel); 50 } 51 52 61 public javax.jms.ConnectionConsumer 62 createConnectionConsumer(javax.jms.Topic topic, String selector, 63 javax.jms.ServerSessionPool sessionPool, 64 int maxMessages) 65 throws JMSException { 66 return super.createConnectionConsumer( 67 topic, 68 selector, 69 sessionPool, 70 maxMessages); 71 } 72 73 82 public javax.jms.ConnectionConsumer 83 createDurableConnectionConsumer(javax.jms.Topic topic, String subName, 84 String selector, 85 javax.jms.ServerSessionPool sessPool, 86 int maxMessages) throws JMSException 87 { 88 return super.createDurableConnectionConsumer( 89 topic, 90 subName, 91 selector, 92 sessPool, 93 maxMessages); 94 } 95 96 102 public javax.jms.TopicSession 103 createTopicSession(boolean transacted, int acknowledgeMode) 104 throws JMSException 105 { 106 checkClosed(); 107 TopicSession ts = new TopicSession( 108 this, 109 transacted, 110 acknowledgeMode, 111 getRequestMultiplexer()); 112 addSession(ts); 113 return ts; 114 } 115 } 116 | Popular Tags |