1 25 package org.objectweb.joram.client.jms; 26 27 import javax.jms.JMSException ; 28 29 32 public abstract class XAQueueConnectionFactory 33 extends XAConnectionFactory 34 implements javax.jms.XAQueueConnectionFactory 35 { 36 43 public XAQueueConnectionFactory(String host, int port) { 44 super(host, port); 45 } 46 47 53 public XAQueueConnectionFactory(String url) { 54 super(url); 55 } 56 57 58 59 60 public String toString() { 61 return "XAQCF:" + params.getHost() + "-" + params.getPort(); 62 } 63 64 70 public abstract javax.jms.XAQueueConnection 71 createXAQueueConnection(String name, String password) 72 throws JMSException ; 73 74 81 public javax.jms.XAQueueConnection createXAQueueConnection() 82 throws JMSException { 83 return createXAQueueConnection(ConnectionFactory.getDefaultLogin(), 84 ConnectionFactory.getDefaultPassword()); 85 } 86 87 94 public abstract javax.jms.QueueConnection 95 createQueueConnection(String name, String password) 96 throws JMSException ; 97 98 105 public javax.jms.QueueConnection createQueueConnection() throws JMSException 106 { 107 return createQueueConnection(ConnectionFactory.getDefaultLogin(), 108 ConnectionFactory.getDefaultPassword()); 109 } 110 111 118 public abstract javax.jms.Connection 119 createConnection(String name, String password) 120 throws JMSException ; 121 122 129 public javax.jms.Connection createConnection() throws JMSException { 130 return createConnection(ConnectionFactory.getDefaultLogin(), 131 ConnectionFactory.getDefaultPassword()); 132 } 133 } 134 | Popular Tags |