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 QueueConnection extends Connection 35 implements javax.jms.QueueConnection { 36 37 46 public QueueConnection(FactoryParameters factoryParameters, 47 RequestChannel requestChannel) 48 throws JMSException { 49 super(factoryParameters, requestChannel); 50 } 51 52 61 public javax.jms.ConnectionConsumer 62 createConnectionConsumer(javax.jms.Queue queue, 63 String selector, 64 javax.jms.ServerSessionPool sessionPool, 65 int maxMessages) 66 throws JMSException { 67 return super.createConnectionConsumer( 68 queue, 69 selector, 70 sessionPool, 71 maxMessages); 72 } 73 74 80 public synchronized javax.jms.QueueSession 81 createQueueSession(boolean transacted, int acknowledgeMode) 82 throws JMSException 83 { 84 checkClosed(); 85 QueueSession qs = new QueueSession( 86 this, 87 transacted, 88 acknowledgeMode, 89 getRequestMultiplexer()); 90 addSession(qs); 91 return qs; 92 } 93 94 99 public javax.jms.ConnectionConsumer 100 createDurableConnectionConsumer(javax.jms.Topic topic, String name, 101 String selector, 102 javax.jms.ServerSessionPool sessPool, 103 int maxMessages) throws JMSException 104 { 105 throw new IllegalStateException ("Forbidden call on a QueueConnection."); 106 } 107 } 108 | Popular Tags |