1 24 package org.objectweb.joram.client.jms.local; 25 26 import org.objectweb.joram.client.jms.Connection; 27 28 import javax.naming.NamingException ; 29 30 34 public class LocalConnectionFactory 35 extends org.objectweb.joram.client.jms.ConnectionFactory { 36 39 public LocalConnectionFactory() { 40 super("localhost", -1); 41 } 42 43 49 public javax.jms.Connection 50 createConnection(String name, String password) 51 throws javax.jms.JMSException { 52 LocalConnection lc = new LocalConnection(name, password); 53 return new Connection(params, lc); 54 } 55 56 57 61 public static javax.jms.ConnectionFactory create() { 62 return new LocalConnectionFactory(); 63 } 64 } 65 | Popular Tags |