public void addConnectionFactory(String factoryName, String service, Map<String,String> params,
boolean listener) throws Exception {
if (getConnectionFactory(factoryName, null, listener) != null) {
throw new Exception("A JMS connection factory already exists by the name " + factoryName);
}
removeDefaults(params);
stub.addConnectionFactory(getParameter(factoryName, params), service, listener);
}