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