Java Code Examples for org.springframework.jms.listener.endpoint.JmsMessageEndpointManager#setPhase()
The following examples show how to use
org.springframework.jms.listener.endpoint.JmsMessageEndpointManager#setPhase() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DefaultJcaListenerContainerFactory.java From spring-analysis-note with MIT License | 5 votes |
@Override public JmsMessageEndpointManager createListenerContainer(JmsListenerEndpoint endpoint) { if (this.destinationResolver != null && this.activationSpecFactory != null) { throw new IllegalStateException("Specify either 'activationSpecFactory' or " + "'destinationResolver', not both. If you define a dedicated JmsActivationSpecFactory bean, " + "specify the custom DestinationResolver there (if possible)"); } JmsMessageEndpointManager instance = createContainerInstance(); if (this.resourceAdapter != null) { instance.setResourceAdapter(this.resourceAdapter); } if (this.activationSpecFactory != null) { instance.setActivationSpecFactory(this.activationSpecFactory); } if (this.destinationResolver != null) { instance.setDestinationResolver(this.destinationResolver); } if (this.transactionManager != null) { instance.setTransactionManager(this.transactionManager); } if (this.phase != null) { instance.setPhase(this.phase); } instance.setActivationSpecConfig(this); endpoint.setupListenerContainer(instance); return instance; }
Example 2
Source File: DefaultJcaListenerContainerFactory.java From java-technology-stack with MIT License | 5 votes |
@Override public JmsMessageEndpointManager createListenerContainer(JmsListenerEndpoint endpoint) { if (this.destinationResolver != null && this.activationSpecFactory != null) { throw new IllegalStateException("Specify either 'activationSpecFactory' or " + "'destinationResolver', not both. If you define a dedicated JmsActivationSpecFactory bean, " + "specify the custom DestinationResolver there (if possible)"); } JmsMessageEndpointManager instance = createContainerInstance(); if (this.resourceAdapter != null) { instance.setResourceAdapter(this.resourceAdapter); } if (this.activationSpecFactory != null) { instance.setActivationSpecFactory(this.activationSpecFactory); } if (this.destinationResolver != null) { instance.setDestinationResolver(this.destinationResolver); } if (this.transactionManager != null) { instance.setTransactionManager(this.transactionManager); } if (this.phase != null) { instance.setPhase(this.phase); } instance.setActivationSpecConfig(this); endpoint.setupListenerContainer(instance); return instance; }
Example 3
Source File: DefaultJcaListenerContainerFactory.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override public JmsMessageEndpointManager createListenerContainer(JmsListenerEndpoint endpoint) { if (this.destinationResolver != null && this.activationSpecFactory != null) { throw new IllegalStateException("Specify either 'activationSpecFactory' or " + "'destinationResolver', not both. If you define a dedicated JmsActivationSpecFactory bean, " + "specify the custom DestinationResolver there (if possible)"); } JmsMessageEndpointManager instance = createContainerInstance(); if (this.resourceAdapter != null) { instance.setResourceAdapter(this.resourceAdapter); } if (this.activationSpecFactory != null) { instance.setActivationSpecFactory(this.activationSpecFactory); } if (this.destinationResolver != null) { instance.setDestinationResolver(this.destinationResolver); } if (this.transactionManager != null) { instance.setTransactionManager(this.transactionManager); } if (this.phase != null) { instance.setPhase(this.phase); } instance.setActivationSpecConfig(this); endpoint.setupListenerContainer(instance); return instance; }