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.TopicConnection; 28 29 import javax.naming.NamingException ; 30 31 35 public class TopicLocalConnectionFactory 36 extends org.objectweb.joram.client.jms.TopicConnectionFactory { 37 38 41 public TopicLocalConnectionFactory() 42 { 43 super("localhost", -1); 44 } 45 46 51 public javax.jms.TopicConnection 52 createTopicConnection(String name, String password) 53 throws javax.jms.JMSException 54 { 55 LocalConnection lc = new LocalConnection(name, password); 56 return new TopicConnection(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.TopicConnectionFactory create() 77 { 78 return new TopicLocalConnectionFactory(); 79 } 80 } 81 | Popular Tags |