00001 /* 00002 * JORAM: Java(TM) Open Reliable Asynchronous Messaging 00003 * Copyright (C) 2001 - 2007 ScalAgent Distributed Technologies 00004 * Copyright (C) 2007 France Telecom R&D 00005 * Copyright (C) 1996 - 2000 Dyade 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this library; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00020 * USA. 00021 * 00022 * Initial developer(s): Frederic Maistre (INRIA) 00023 * Contributor(s): ScalAgent Distributed Technologies 00024 * Benoit Pelletier (Bull SA) 00025 */ 00026 package org.objectweb.joram.client.jms; 00027 00028 import javax.jms.JMSException; 00029 00030 import org.objectweb.joram.client.jms.admin.AbstractConnectionFactory; 00031 00035 public abstract class XAConnectionFactory 00036 extends AbstractConnectionFactory 00037 implements javax.jms.XAConnectionFactory { 00038 00046 public XAConnectionFactory(String host, int port) { 00047 super(host, port); 00048 } 00049 00056 public XAConnectionFactory(String url) { 00057 super(url); 00058 } 00059 00063 public XAConnectionFactory() { 00064 super(); 00065 } 00066 00068 public String toString() { 00069 return "XACF:" + params.getHost() + "-" + params.getPort(); 00070 } 00071 00078 public abstract javax.jms.XAConnection 00079 createXAConnection(String name, String password) throws JMSException; 00080 00088 public javax.jms.XAConnection createXAConnection() throws JMSException { 00089 return createXAConnection(getDefaultLogin(), getDefaultPassword()); 00090 } 00091 }
1.5.0