1 28 29 package com.caucho.jms.session; 30 31 import com.caucho.jms.ConnectionFactoryImpl; 32 33 import javax.jms.ConnectionConsumer ; 34 import javax.jms.JMSException ; 35 import javax.jms.Queue ; 36 import javax.jms.QueueConnection ; 37 import javax.jms.QueueSession ; 38 import javax.jms.ServerSessionPool ; 39 40 43 public class QueueConnectionImpl extends ConnectionImpl 44 implements QueueConnection { 45 48 public QueueConnectionImpl(ConnectionFactoryImpl factory) 49 { 50 super(factory); 51 } 52 53 56 public ConnectionConsumer 57 createConnectionConsumer(Queue queue, String messageSelector, 58 ServerSessionPool sessionPool, int maxMessages) 59 throws JMSException 60 { 61 throw new UnsupportedOperationException (); 62 } 63 64 67 public QueueSession createQueueSession(boolean transacted, 68 int acknowledgeMode) 69 throws JMSException 70 { 71 checkOpen(); 72 73 assignClientID(); 74 75 return new QueueSessionImpl(this, transacted, acknowledgeMode); 76 } 77 } 78 | Popular Tags |