// Skip channel-definitions for remote endpoints
if (chanSettings.isRemote())
continue;
// Create the Endpoint
Endpoint endpoint = broker.createEndpoint(id, url, endpointClassName);
endpoint.setSecurityConstraint(chanSettings.getConstraint());
endpoint.setClientType(chanSettings.getClientType());
// Assign referenced server
String referencedServerId = chanSettings.getServerId();
if ((referencedServerId != null) && (endpoint instanceof Endpoint2))
{
Server server = broker.getServer(referencedServerId);
if (server == null)
{
ConfigurationException ce = new ConfigurationException();
ce.setMessage(11128, new Object[] {chanSettings.getId(), referencedServerId});
throw ce;
}
((Endpoint2)endpoint).setServer(broker.getServer(referencedServerId));
}
// Initialize with endpoint properties
endpoint.initialize(id, chanSettings.getProperties());
if (Log.isInfo())
{
String endpointURL = endpoint.getUrl();
String endpointSecurity = EndpointControl.getSecurityConstraintOf(endpoint);
if (StringUtils.isEmpty(endpointSecurity))
endpointSecurity = "None";
Log.getLogger(ConfigurationManager.LOG_CATEGORY).info
("Endpoint " + id + " created with security: " +