/** * Returns a new JMS endpoint for the given JMS destination using the configuration from the given JMS component */ public static JmsEndpoint newInstance(Destination destination, JmsComponent component) throws JMSException { JmsEndpoint answer = newInstance(destination); JmsConfiguration newConfiguration = component.getConfiguration().copy(); answer.setConfiguration(newConfiguration); answer.setCamelContext(component.getCamelContext()); return answer; }