org.exolab.jms.server.net
Class JmsAdminServerImpl

java.lang.Object
  |
  +--org.exolab.jms.net.orb.UnicastObject
        |
        +--org.exolab.jms.server.net.JmsAdminServerImpl
All Implemented Interfaces:
RemoteJmsAdminServerIfc

public class JmsAdminServerImpl
extends org.exolab.jms.net.orb.UnicastObject
implements RemoteJmsAdminServerIfc

This class implements the RemoteJmsAdminServerIfc and simply delegates all the request to the JmsAdmin singleton instance.

Version:
$Revision: 1.3 $ $Date: 2005/08/30 05:51:03 $
Author:
Jim Alateras

Constructor Summary
JmsAdminServerImpl(AdminConnectionManager manager, org.exolab.jms.net.orb.ORB orb, java.lang.String uri)
          Construct a new JmsAdminServerImpl
 
Method Summary
 RemoteJmsAdminConnectionIfc createConnection(java.lang.String username, java.lang.String password)
          Create a connection to the specified server.
 
Methods inherited from class org.exolab.jms.net.orb.UnicastObject
getORB, getProxy, getURI, unexportObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsAdminServerImpl

public JmsAdminServerImpl(AdminConnectionManager manager,
                          org.exolab.jms.net.orb.ORB orb,
                          java.lang.String uri)
                   throws java.rmi.RemoteException
Construct a new JmsAdminServerImpl
Parameters:
manager - the admin connection manager
orb - the ORB to export this with
uri - the URI to export this on
Throws:
java.rmi.RemoteException - if this can't be exported
Method Detail

createConnection

public RemoteJmsAdminConnectionIfc createConnection(java.lang.String username,
                                                    java.lang.String password)
                                             throws javax.jms.JMSException,
                                                    java.rmi.RemoteException
Create a connection to the specified server. This will create an instance of a AdminConnection and then return a remote reference to it.
Specified by:
createConnection in interface RemoteJmsAdminServerIfc
Parameters:
username - the client's user name
password - the client's password
Returns:
a new connection
Throws:
javax.jms.JMSException - if the connection cannot be created
java.rmi.RemoteException - if the connection cannot be created


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