{
String oldPassword = (String)passwords.get(username);
if(password.equals(oldPassword))
connector = (JMSConnector)connectors.get(username);
else
throw new AxisFault("badUserPass");
}
else
{
connector = createConnector(username, password);
connectors.put(username, connector);
// I should really md5 hash these
passwords.put(username, password);
}
}
}
}
catch(Exception e)
{
log.error(Messages.getMessage("cannotConnectError"), e);
if(e instanceof AxisFault)
throw (AxisFault)e;
throw new AxisFault("cannotConnect", e);
}
context.setProperty(JMSConstants.CONNECTOR, connector);
//I would like to use the following, but that requires JMS-URL syntax