org.exolab.jms.administration
Class AdminConnectionFactory

java.lang.Object
  |
  +--org.exolab.jms.administration.AdminConnectionFactory

public class AdminConnectionFactory
extends java.lang.Object

This class is a factory for creating AdminConnection instances.

Version:
$Revision: 1.12 $ $Date: 2003/08/18 10:15:32 $
Author:
Tim Anderson, Knut Lerpold
See Also:
JmsAdminServerIfc

Constructor Summary
AdminConnectionFactory()
           
 
Method Summary
static JmsAdminServerIfc create(java.lang.String url)
          Create an unauthenticated admin connection, using the specified server URL
static JmsAdminServerIfc create(java.lang.String url, java.lang.String username, java.lang.String password)
          Create an authenticated admin connection, using the specified server URL, name, and password
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminConnectionFactory

public AdminConnectionFactory()
Method Detail

create

public static JmsAdminServerIfc create(java.lang.String url)
                                throws javax.jms.JMSException,
                                       java.net.MalformedURLException
Create an unauthenticated admin connection, using the specified server URL
Parameters:
url - the OpenJMS server URL
Returns:
JmsAdminServerIfc the administration API
Throws:
javax.jms.JMSException - if a connection cannot be established
java.net.MalformedURLException - if url is invalid

create

public static JmsAdminServerIfc create(java.lang.String url,
                                       java.lang.String username,
                                       java.lang.String password)
                                throws javax.jms.JMSException,
                                       java.net.MalformedURLException
Create an authenticated admin connection, using the specified server URL, name, and password
Parameters:
url - the OpenJMS server URL
username - the admin user name
password - the admin user password
Returns:
JmsAdminServerIfc the administration API
Throws:
javax.jms.JMSException - if a connection cannot be established
java.net.MalformedURLException - if url is invalid


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.