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 XAConnectionFactory 40 extends AbstractConnectionFactory 41 implements javax.jms.XAConnectionFactory { 42 49 public XAConnectionFactory(String host, int port) { 50 super(host, port); 51 } 52 53 59 public XAConnectionFactory(String url) { 60 super(url); 61 } 62 63 66 public XAConnectionFactory() { 67 super(); 68 } 69 70 71 public String toString() { 72 return "XACF:" + params.getHost() + "-" + params.getPort(); 73 } 74 75 81 public abstract javax.jms.XAConnection 82 createXAConnection(String name, String password) throws JMSException ; 83 84 91 public javax.jms.XAConnection createXAConnection() throws JMSException { 92 return createXAConnection(getDefaultLogin(), getDefaultPassword()); 93 } 94 } 95 | Popular Tags |