1 45 package org.exolab.jms.administration; 46 47 import java.net.MalformedURLException ; 48 49 import javax.jms.JMSException ; 50 51 import org.exolab.jms.administration.net.JmsAdminConnectionImpl; 52 53 54 62 public class AdminConnectionFactory { 63 64 74 private static AdminConnection getConnection(String url, String username, 75 String password) 76 throws JMSException , MalformedURLException { 77 return new JmsAdminConnectionImpl(url, username, password); 78 } 79 80 89 public static JmsAdminServerIfc create(String url) 90 throws JMSException , MalformedURLException { 91 return create(url, null, null); 92 } 93 94 104 public static JmsAdminServerIfc create(String url, String username, 105 String password) 106 throws JMSException , MalformedURLException { 107 return new JmsAdminConnectionImpl(url, username, password); 108 } 109 110 } 111 112 | Popular Tags |