1 24 package org.objectweb.joram.client.jms.ha.tcp; 25 26 import org.objectweb.joram.client.jms.*; 27 28 32 public class HATcpConnectionFactory 33 extends org.objectweb.joram.client.jms.ConnectionFactory { 34 35 38 public HATcpConnectionFactory(String url) { 39 super(url); 40 } 41 42 48 public javax.jms.Connection 49 createConnection(String name, String password) 50 throws javax.jms.JMSException { 51 HATcpConnection lc = new HATcpConnection( 52 params.getUrl(), params, name, password, reliableClass); 53 return new Connection(params, lc); 54 } 55 56 62 public static javax.jms.ConnectionFactory create(String url) { 63 return create(url, "org.objectweb.joram.client.jms.tcp.ReliableTcpClient"); 64 } 65 72 public static javax.jms.ConnectionFactory 73 create(String url, String reliableClass) { 74 HATcpConnectionFactory cf = new HATcpConnectionFactory(url); 75 cf.setReliableClass(reliableClass); 76 return cf; 77 } 78 } 79 | Popular Tags |