1 28 29 package com.caucho.jms; 30 31 import com.caucho.jms.session.QueueConnectionImpl; 32 33 import javax.jms.JMSException ; 34 import javax.jms.QueueConnection ; 35 import javax.jms.QueueConnectionFactory ; 36 37 40 public class JVMQueueConnectionFactory extends ConnectionFactoryImpl 41 implements QueueConnectionFactory { 42 public JVMQueueConnectionFactory() 43 { 44 } 45 46 49 public QueueConnection createQueueConnection() 50 throws JMSException 51 { 52 return createQueueConnection(null, null); 53 } 54 55 63 public QueueConnection createQueueConnection(String username, 64 String password) 65 throws JMSException 66 { 67 authenticate(username, password); 68 69 QueueConnectionImpl conn = new QueueConnectionImpl(this); 70 71 addConnection(conn); 72 73 return conn; 74 } 75 } 76 | Popular Tags |