1 24 package org.objectweb.joram.client.jms.ha.tcp; 25 26 import org.objectweb.joram.client.jms.*; 27 28 public class TopicHATcpConnectionFactory 29 extends org.objectweb.joram.client.jms.TopicConnectionFactory { 30 31 private String url; 32 33 public TopicHATcpConnectionFactory(String url) { 34 super(url); 35 this.url = url; 36 } 37 38 43 public javax.jms.TopicConnection 44 createTopicConnection(String name, String password) 45 throws javax.jms.JMSException 46 { 47 HATcpConnection lc = new HATcpConnection( 48 url, params, name, password, reliableClass); 49 return new TopicConnection(params, lc); 50 } 51 52 58 public javax.jms.Connection 59 createConnection(String name, String password) 60 throws javax.jms.JMSException 61 { 62 HATcpConnection lc = new HATcpConnection( 63 url, params, name, password, reliableClass); 64 return new Connection(params, lc); 65 } 66 67 71 public static javax.jms.TopicConnectionFactory create(String url) { 72 return create(url, 73 "org.objectweb.joram.client.jms.tcp.ReliableTcpClient"); 74 } 75 76 80 public static javax.jms.TopicConnectionFactory 81 create(String url, String reliableClass) { 82 TopicHATcpConnectionFactory cf = new TopicHATcpConnectionFactory(url); 83 cf.setReliableClass(reliableClass); 84 return cf; 85 } 86 } 87 | Popular Tags |