1 24 package org.objectweb.joram.client.jms.local; 25 26 import org.objectweb.joram.client.jms.Connection; 27 import org.objectweb.joram.client.jms.QueueConnection; 28 29 import javax.naming.NamingException ; 30 31 35 public class QueueLocalConnectionFactory 36 extends org.objectweb.joram.client.jms.QueueConnectionFactory 37 { 38 41 public QueueLocalConnectionFactory() 42 { 43 super("localhost", -1); 44 } 45 46 51 public javax.jms.QueueConnection 52 createQueueConnection(String name, String password) 53 throws javax.jms.JMSException 54 { 55 LocalConnection lc = new LocalConnection(name, password); 56 return new QueueConnection(params, lc); 57 } 58 59 64 public javax.jms.Connection createConnection(String name, String password) 65 throws javax.jms.JMSException 66 { 67 LocalConnection lc = new LocalConnection(name, password); 68 return new Connection(params, lc); 69 } 70 71 72 76 public static javax.jms.QueueConnectionFactory create() 77 { 78 return new QueueLocalConnectionFactory(); 79 } 80 } 81 | Popular Tags |