1 25 package org.objectweb.joram.client.jms; 26 27 import javax.jms.JMSException ; 28 29 32 public abstract class TopicConnectionFactory 33 extends ConnectionFactory 34 implements javax.jms.TopicConnectionFactory 35 { 36 43 public TopicConnectionFactory(String host, int port) 44 { 45 super(host, port); 46 } 47 48 53 public TopicConnectionFactory(String url) { 54 super(url); 55 } 56 57 58 61 public TopicConnectionFactory() 62 {} 63 64 65 66 public String toString() 67 { 68 return "TCF:" + params.getHost() + "-" + params.getPort(); 69 } 70 71 77 public abstract javax.jms.TopicConnection 78 createTopicConnection(String name, String password) 79 throws JMSException ; 80 81 88 public javax.jms.TopicConnection createTopicConnection() throws JMSException 89 { 90 return createTopicConnection(getDefaultLogin(), getDefaultPassword()); 91 } 92 } 93 | Popular Tags |