1 25 package org.objectweb.joram.client.jms; 26 27 import javax.jms.JMSException ; 28 29 32 public abstract class XATopicConnectionFactory 33 extends XAConnectionFactory 34 implements javax.jms.XATopicConnectionFactory 35 { 36 43 public XATopicConnectionFactory(String host, int port) { 44 super(host, port); 45 } 46 47 53 public XATopicConnectionFactory(String url) { 54 super(url); 55 } 56 57 58 public String toString() { 59 return "XATCF:" + params.getHost() + "-" + params.getPort(); 60 } 61 62 68 public abstract javax.jms.XATopicConnection 69 createXATopicConnection(String name, String password) 70 throws JMSException ; 71 72 79 public javax.jms.XATopicConnection 80 createXATopicConnection() throws JMSException { 81 return createXATopicConnection(ConnectionFactory.getDefaultLogin(), 82 ConnectionFactory.getDefaultPassword()); 83 } 84 85 92 public abstract javax.jms.TopicConnection 93 createTopicConnection(String name, String password) 94 throws JMSException ; 95 96 103 public javax.jms.TopicConnection createTopicConnection() throws JMSException 104 { 105 return createTopicConnection(ConnectionFactory.getDefaultLogin(), 106 ConnectionFactory.getDefaultPassword()); 107 } 108 109 116 public abstract javax.jms.Connection 117 createConnection(String name, String password) 118 throws JMSException ; 119 120 127 public javax.jms.Connection createConnection() throws JMSException 128 { 129 return createConnection(ConnectionFactory.getDefaultLogin(), 130 ConnectionFactory.getDefaultPassword()); 131 } 132 } 133 | Popular Tags |