00001 /* 00002 * JORAM: Java(TM) Open Reliable Asynchronous Messaging 00003 * Copyright (C) 2001 - 2006 ScalAgent Distributed Technologies 00004 * Copyright (C) 1996 - 2000 Dyade 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00019 * USA. 00020 * 00021 * Initial developer(s): Frederic Maistre (INRIA) 00022 * Contributor(s): ScalAgent Distributed Technologies 00023 * Benoit Pelletier (Bull SA) 00024 */ 00025 package org.objectweb.joram.client.jms; 00026 00027 import javax.jms.JMSException; 00028 00032 public abstract class TopicConnectionFactory 00033 extends ConnectionFactory 00034 implements javax.jms.TopicConnectionFactory { 00042 public TopicConnectionFactory(String host, int port) { 00043 super(host, port); 00044 } 00045 00051 public TopicConnectionFactory(String url) { 00052 super(url); 00053 } 00054 00055 00060 public TopicConnectionFactory() {} 00061 00062 00064 public String toString() { 00065 return "TCF:" + params.getHost() + "-" + params.getPort(); 00066 } 00067 00074 public abstract javax.jms.TopicConnection 00075 createTopicConnection(String name, String password) 00076 throws JMSException; 00077 00085 public javax.jms.TopicConnection createTopicConnection() throws JMSException { 00086 return createTopicConnection(getDefaultLogin(), getDefaultPassword()); 00087 } 00088 }
1.5.0