1 45 package org.exolab.jms.server.net; 46 47 import java.rmi.RemoteException ; 48 import javax.jms.JMSException ; 49 50 import org.exolab.jms.server.AdminConnection; 51 import org.exolab.jms.server.AdminConnectionManager; 52 import org.exolab.jms.server.AdminConnectionManager; 53 import org.exolab.jms.server.AdminConnection; 54 import org.exolab.jms.net.orb.UnicastObject; 55 import org.exolab.jms.net.orb.ORB; 56 57 58 65 public class JmsAdminServerImpl 66 extends UnicastObject 67 implements RemoteJmsAdminServerIfc { 68 69 76 public JmsAdminServerImpl(ORB orb, String uri) throws RemoteException { 77 super(orb, uri); 78 } 79 80 91 public RemoteJmsAdminConnectionIfc createConnection(String username, 92 String password) 93 throws JMSException , RemoteException { 94 AdminConnection connection = 95 AdminConnectionManager.instance().createConnection( 96 username, password); 97 98 JmsAdminConnectionImpl result = 99 new JmsAdminConnectionImpl(connection, getORB()); 100 return (RemoteJmsAdminConnectionIfc) result.getProxy(); 101 } 102 103 } 104 105 106 107 | Popular Tags |