1 18 package org.apache.activemq.ra; 19 20 import javax.jms.Connection ; 21 import javax.jms.ConnectionFactory ; 22 import javax.jms.JMSException ; 23 import javax.jms.QueueConnection ; 24 import javax.jms.QueueConnectionFactory ; 25 import javax.jms.TopicConnection ; 26 import javax.jms.TopicConnectionFactory ; 27 28 35 public class InboundConnectionProxyFactory implements ConnectionFactory , QueueConnectionFactory , TopicConnectionFactory { 36 37 public Connection createConnection() throws JMSException { 38 return new InboundConnectionProxy(); 39 } 40 41 public Connection createConnection(String userName, String password) throws JMSException { 42 return createConnection(); 43 } 44 45 public QueueConnection createQueueConnection() throws JMSException { 46 return new InboundConnectionProxy(); 47 } 48 49 public QueueConnection createQueueConnection(String userName, String password) throws JMSException { 50 return createQueueConnection(); 51 } 52 53 public TopicConnection createTopicConnection() throws JMSException { 54 return new InboundConnectionProxy(); 55 } 56 57 public TopicConnection createTopicConnection(String userName, String password) throws JMSException { 58 return createTopicConnection(); 59 } 60 } 61 | Popular Tags |