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.XATopicConnection; 28 import org.objectweb.joram.client.jms.Connection; 29 import org.objectweb.joram.client.jms.TopicConnection; 30 31 import javax.naming.NamingException ; 32 33 34 38 public class XATopicLocalConnectionFactory 39 extends org.objectweb.joram.client.jms.XATopicConnectionFactory 40 { 41 44 public XATopicLocalConnectionFactory() 45 { 46 super("localhost", -1); 47 } 48 49 50 55 public javax.jms.XATopicConnection 56 createXATopicConnection(String name, String password) 57 throws javax.jms.JMSException 58 { 59 LocalConnection lc = new LocalConnection(name, password); 60 return new XATopicConnection(params, lc); 61 } 62 63 68 public javax.jms.XAConnection 69 createXAConnection(String name, String password) 70 throws javax.jms.JMSException 71 { 72 LocalConnection lc = new LocalConnection(name, password); 73 return new XAConnection(params, lc); 74 } 75 76 81 public javax.jms.TopicConnection 82 createTopicConnection(String name, String password) 83 throws javax.jms.JMSException 84 { 85 LocalConnection lc = new LocalConnection(name, password); 86 return new TopicConnection(params, lc); 87 } 88 89 95 public javax.jms.Connection createConnection(String name, String password) 96 throws javax.jms.JMSException 97 { 98 LocalConnection lc = new LocalConnection(name, password); 99 return new Connection(params, lc); 100 } 101 102 103 107 public static javax.jms.XATopicConnectionFactory create() 108 { 109 return new XATopicLocalConnectionFactory(); 110 } 111 } 112 | Popular Tags |