if (user == null) {
user = _defaultUser;
password = _defaultPassword;
}
ServerConnectionFactory factory
= getServerConnectionFactory(user, password);
try {
ServerConnection connection
= factory.createConnection(clientID, user, password);
stub = new JmsConnectionStubImpl(connection, _orb, _serverURI,
user, password);
} finally {
if (factory instanceof Proxy) {
((Proxy) factory).disposeProxy();