1 22 package org.objectweb.joram.client.jms.ha.local; 23 24 import org.objectweb.joram.client.jms.*; 25 26 public class TopicHALocalConnectionFactory 27 extends org.objectweb.joram.client.jms.TopicConnectionFactory { 28 29 public TopicHALocalConnectionFactory() { 30 super("", -1); 31 } 32 33 38 public javax.jms.TopicConnection 39 createTopicConnection(String name, String password) 40 throws javax.jms.JMSException 41 { 42 HALocalConnection lc = new HALocalConnection( 43 name, password); 44 return new TopicConnection(params, lc); 45 } 46 47 53 public javax.jms.Connection 54 createConnection(String name, String password) 55 throws javax.jms.JMSException 56 { 57 HALocalConnection lc = new HALocalConnection( 58 name, password); 59 return new Connection(params, lc); 60 } 61 62 66 public static javax.jms.TopicConnectionFactory create() 67 { 68 return new TopicHALocalConnectionFactory(); 69 } 70 } 71 | Popular Tags |