public static void setupEndpoint(final Endpoint endpoint) { if (!(endpoint instanceof EndpointImpl)) { throw new IllegalArgumentException("Only CXF JAX-WS endpoints supported. "); } final EndpointImpl ep = (EndpointImpl) endpoint; final List<Feature> features = new ArrayList<Feature>(); features.add(new RequestCallbackFeature()); if (logging) { features.add(new LoggingFeature()); } if (serviceActivityMonitoring) { features.add(getEventFeature()); } if (ep.getFeatures() != null) { features.addAll(ep.getFeatures()); } ep.setFeatures(features); ep.getProperties().put(NULL_MEANS_ONEWAY, Boolean.TRUE); }
public Endpoint configureEndpoint(Endpoint endpoint) { if (jmsConfiguration == null || !(endpoint instanceof EndpointImpl) || (serviceName == null && configuration == null)) { return null; } if (!jmsConfigured) { setupJmsConfiguration(); } final EndpointImpl ei = (EndpointImpl) endpoint; final JMSConfigFeature feature = new JMSConfigFeature(); feature.setJmsConfig(jmsConfiguration); List<Feature> features = ei.getFeatures(); if (features == null) { features = new ArrayList<Feature>(); } features.add(feature); ei.setFeatures(features); return endpoint; }
endpoint.setFeatures(features); endpoint.getProperties().put(NULL_MEANS_ONEWAY, Boolean.TRUE); if (cbInterfaceName != null) {
@BeforeClass public static void startServers() throws Exception { startBusAndJMS(JMSTransactionTest.class); //startBusAndJMS("tcp://localhost:61616"); endpoint = new EndpointImpl(bus, new GreeterImplWithTransaction()); endpoint.setAddress(SERVICE_ADDRESS); endpoint.setFeatures(Collections.singletonList(cff)); endpoint.publish(); }