1 22 package org.objectweb.joram.client.jms.ha.local; 23 24 import org.objectweb.joram.client.jms.*; 25 26 public class QueueHALocalConnectionFactory 27 extends org.objectweb.joram.client.jms.QueueConnectionFactory { 28 29 public QueueHALocalConnectionFactory() { 30 super("", -1); 31 } 32 33 38 public javax.jms.QueueConnection 39 createQueueConnection(String name, String password) 40 throws javax.jms.JMSException 41 { 42 HALocalConnection lc = new HALocalConnection( 43 name, password); 44 return new QueueConnection(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.QueueConnectionFactory create() 67 { 68 return new QueueHALocalConnectionFactory(); 69 } 70 } 71 | Popular Tags |