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