1 24 package com.scalagent.kjoram; 25 26 import com.scalagent.kjoram.excepts.JMSException; 27 28 29 public abstract class TopicConnectionFactory 30 extends ConnectionFactory 31 { 32 39 public TopicConnectionFactory(String host, int port) 40 { 41 super(host, port); 42 } 43 44 47 public TopicConnectionFactory() 48 {} 49 50 51 52 public String toString() 53 { 54 return "TCF:" + params.getHost() + "-" + params.getPort(); 55 } 56 57 63 public abstract TopicConnection 64 createTopicConnection(String name, String password) 65 throws JMSException; 66 67 74 public TopicConnection createTopicConnection() throws JMSException 75 { 76 return createTopicConnection("anonymous", "anonymous"); 77 } 78 } 79 | Popular Tags |