Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4253

Improve JmsMessageDrivenChannelAdapterSpec.configureListenerContainer() to infer target container type

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 5.0 M7
    • Component/s: JMS Support
    • Labels:

      Description

      Currently with the code:

      Jms.messageDrivenChannelAdapter(jmsConnectionFactory())
      	.configureListenerContainer(c -> c.clientId("foo"))
      

      we can't configure any JmsDefaultListenerContainerSpec properties because we are restricted only with the Consumer<JmsListenerContainerSpec<S, C>> configurer.

      This one should be exposed as a generic type as well and be based on the provided container class.

      As a workaround to use Jms.container() instead of separate connectionFactory and configureListenerContainer() callback.

        Attachments

          Activity

            People

            Assignee:
            abilan Artem Bilan
            Reporter:
            abilan Artem Bilan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: