1 24 package org.objectweb.joram.client.jms.local; 25 26 import org.objectweb.joram.client.jms.XAConnection; 27 import org.objectweb.joram.client.jms.XAQueueConnection; 28 import org.objectweb.joram.client.jms.Connection; 29 import org.objectweb.joram.client.jms.QueueConnection; 30 31 import javax.naming.NamingException ; 32 33 37 public class XAQueueLocalConnectionFactory 38 extends org.objectweb.joram.client.jms.XAQueueConnectionFactory 39 { 40 43 public XAQueueLocalConnectionFactory() 44 { 45 super("localhost", -1); 46 } 47 48 49 54 public javax.jms.XAQueueConnection 55 createXAQueueConnection(String name, String password) 56 throws javax.jms.JMSException 57 { 58 LocalConnection lc = new LocalConnection(name, password); 59 return new XAQueueConnection(params, lc); 60 } 61 62 67 public javax.jms.XAConnection 68 createXAConnection(String name, String password) 69 throws javax.jms.JMSException 70 { 71 LocalConnection lc = new LocalConnection(name, password); 72 return new XAConnection(params, lc); 73 } 74 75 80 public javax.jms.QueueConnection 81 createQueueConnection(String name, String password) 82 throws javax.jms.JMSException 83 { 84 LocalConnection lc = new LocalConnection(name, password); 85 return new QueueConnection(params, lc); 86 } 87 88 93 public javax.jms.Connection createConnection(String name, String password) 94 throws javax.jms.JMSException 95 { 96 LocalConnection lc = new LocalConnection(name, password); 97 return new Connection(params, lc); 98 } 99 100 101 105 public static javax.jms.XAQueueConnectionFactory create() 106 { 107 return new XAQueueLocalConnectionFactory(); 108 } 109 } 110 | Popular Tags |