protected String createEndpointName() { if (idGenerator == null) { idGenerator = new IdGenerator("camel"); } return idGenerator.generateSanitizedId(); }
public void doWith(Field field) throws IllegalArgumentException, IllegalAccessException { if (field.getAnnotation(WebServiceRef.class) != null) { ServiceImpl s = new ServiceImpl(getBus(), null, null, field.getType()); s.addPort(new QName("port"), JBITransportFactory.TRANSPORT_ID, "jbi://" + ID_GENERATOR.generateSanitizedId()); Object o = s.getPort(new QName("port"), field.getType()); field.setAccessible(true); field.set(getPojo(), o); } } });
/** * Create a RemoteServiceMixClient * @param uri * @param activationSpec */ public RemoteServiceMixClient(String uri, ActivationSpec activationSpec) { container = new JBIContainer(); container.setEmbedded(true); container.setUseMBeanServer(false); container.setName(new IdGenerator().generateSanitizedId()); this.uri = uri; this.activationSpec = activationSpec; }
cf.setAddress("jbi://" + new IdGenerator().generateSanitizedId()); if (isUseJBIWrapper()) { cf.setBindingId(org.apache.servicemix.cxf.binding.jbi.JBIConstants.NS_JBI_BINDING);
String address = "jbi://" + ID_GENERATOR.generateSanitizedId();