1 24 package org.objectweb.joram.client.jms.local; 25 26 import org.objectweb.joram.client.jms.XAConnection; 27 28 import javax.naming.NamingException ; 29 30 31 35 public class XALocalConnectionFactory 36 extends org.objectweb.joram.client.jms.XAConnectionFactory 37 { 38 41 public XALocalConnectionFactory() 42 { 43 super("localhost", -1); 44 } 45 46 47 52 public javax.jms.XAConnection 53 createXAConnection(String name, String password) 54 throws javax.jms.JMSException 55 { 56 LocalConnection lc = new LocalConnection(name, password); 57 return new XAConnection(params, lc); 58 } 59 60 61 65 public static javax.jms.XAConnectionFactory create() 66 { 67 return new XALocalConnectionFactory(); 68 } 69 } 70 | Popular Tags |