/** Setup the tracing endpoint registry */ @Bean JmsListenerConfigurer configureTracing(JmsTracing jmsTracing, CurrentTraceContext current) { return registrar -> registrar.setEndpointRegistry( new TracingJmsListenerEndpointRegistry(jmsTracing, current)); }
JmsListenerConfigUtils.JMS_LISTENER_ENDPOINT_REGISTRY_BEAN_NAME, JmsListenerEndpointRegistry.class); this.registrar.setEndpointRegistry(this.endpointRegistry);
@Before public void setup() { this.registrar.setEndpointRegistry(this.registry); this.registrar.setBeanFactory(new StaticListableBeanFactory()); }
@Override public void configureJmsListeners(JmsListenerEndpointRegistrar registrar) { registrar.setEndpointRegistry(customRegistry()); // Also register a custom endpoint SimpleJmsListenerEndpoint endpoint = new SimpleJmsListenerEndpoint(); endpoint.setId("myCustomEndpointId"); endpoint.setDestination("myQueue"); endpoint.setMessageListener(simpleMessageListener()); registrar.registerEndpoint(endpoint); }
/** Setup the tracing endpoint registry */ @Bean JmsListenerConfigurer configureTracing(JmsTracing jmsTracing, CurrentTraceContext current) { return registrar -> registrar.setEndpointRegistry( new TracingJmsListenerEndpointRegistry(jmsTracing, current)); }
JmsListenerConfigUtils.JMS_LISTENER_ENDPOINT_REGISTRY_BEAN_NAME, JmsListenerEndpointRegistry.class); this.registrar.setEndpointRegistry(this.endpointRegistry);
JmsListenerConfigUtils.JMS_LISTENER_ENDPOINT_REGISTRY_BEAN_NAME, JmsListenerEndpointRegistry.class); this.registrar.setEndpointRegistry(this.endpointRegistry);