1 26 package org.objectweb.joram.client.jms; 27 28 import javax.naming.*; 29 import javax.jms.JMSException ; 30 31 import org.objectweb.joram.client.jms.admin.AbstractConnectionFactory; 32 33 import org.objectweb.util.monolog.api.BasicLevel; 34 import org.objectweb.joram.shared.JoramTracing; 35 36 39 public abstract class ConnectionFactory 40 extends AbstractConnectionFactory 41 implements javax.jms.ConnectionFactory { 42 48 public ConnectionFactory(String host, int port) { 49 super(host, port); 50 } 51 52 57 public ConnectionFactory(String url) { 58 super(url); 59 } 60 61 64 public ConnectionFactory() { 65 super(); 66 } 67 68 69 public String toString() { 70 return "CF:" + params.getHost() + "-" + params.getPort(); 71 } 72 73 79 public abstract javax.jms.Connection 80 createConnection(String name, String password) throws JMSException ; 81 82 89 public javax.jms.Connection createConnection() throws JMSException { 90 return createConnection(getDefaultLogin(), getDefaultPassword()); 91 } 92 } 93 | Popular Tags |