private void modifyTransportIdPerAddress(EndpointInfo ei) { //get chance to set transportId according to the the publish address prefix //this is useful for local & camel transport if (transportId == null && getAddress() != null) { DestinationFactory df = getDestinationFactory(); if (df == null) { DestinationFactoryManager dfm = getBus().getExtension( DestinationFactoryManager.class); df = dfm.getDestinationFactoryForUri(getAddress()); } if (df != null) { transportId = df.getTransportIds().get(0); } else { // check conduits (the address could be supported on // client only) ConduitInitiatorManager cim = getBus().getExtension( ConduitInitiatorManager.class); ConduitInitiator ci = cim .getConduitInitiatorForUri(getAddress()); if (ci != null) { transportId = ci.getTransportIds().get(0); } } } if (transportId != null) { ei.setTransportId(transportId); } }
private void modifyTransportIdPerAddress(EndpointInfo ei) { //get chance to set transportId according to the the publish address prefix //this is useful for local & camel transport if (transportId == null && getAddress() != null) { DestinationFactory df = getDestinationFactory(); if (df == null) { DestinationFactoryManager dfm = getBus().getExtension( DestinationFactoryManager.class); df = dfm.getDestinationFactoryForUri(getAddress()); } if (df != null) { transportId = df.getTransportIds().get(0); } else { // check conduits (the address could be supported on // client only) ConduitInitiatorManager cim = getBus().getExtension( ConduitInitiatorManager.class); ConduitInitiator ci = cim .getConduitInitiatorForUri(getAddress()); if (ci != null) { transportId = ci.getTransportIds().get(0); } } } if (transportId != null) { ei.setTransportId(transportId); } }
protected EndpointInfo createEndpointInfo(BindingInfo bindingInfo) throws BusException { if (transportId == null && getAddress() != null && getAddress().startsWith("jms:") && !"jms://".equals(getAddress())) { && getAddress() != null && getAddress().contains("://")) { transportId = detectTransportIdFromAddress(getAddress()); ei.setAddress(getAddress()); ei.setBinding(bindingInfo);
protected EndpointInfo createEndpointInfo(BindingInfo bindingInfo) throws BusException { if (transportId == null && getAddress() != null && getAddress().startsWith("jms:") && !"jms://".equals(getAddress())) { && getAddress() != null && getAddress().contains("://")) { transportId = detectTransportIdFromAddress(getAddress()); ei.setAddress(getAddress()); ei.setBinding(bindingInfo);
if (getAddress() == null) { ei = ServiceModelUtil.findBestEndpointInfo(serviceFactory.getInterfaceName(), service .getServiceInfos()); + endpointName + " in wsdl doesn't match " + bindingId + "."); ei = createEndpointInfo(null); } else if (getAddress() != null) { ei.setAddress(getAddress()); if (ei.getAddress().startsWith("camel") || ei.getAddress().startsWith("local")) { } else if (getAddress() != null) { ei.setAddress(getAddress());
if (getAddress() == null) { ei = ServiceModelUtil.findBestEndpointInfo(serviceFactory.getInterfaceName(), service .getServiceInfos()); + endpointName + " in wsdl doesn't match " + bindingId + "."); ei = createEndpointInfo(null); } else if (getAddress() != null) { ei.setAddress(getAddress()); if (ei.getAddress().startsWith("camel") || ei.getAddress().startsWith("local")) { } else if (getAddress() != null) { ei.setAddress(getAddress());