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

Spring Integration DSL equivalent for 'int-jms:message-driven-channel-adapter' with 'subscription-shared' option

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 5.0.7
    • Component/s: DSL, JMS Support
    • Labels:
    • Environment:
      Spring + Spring Integration DSL 1.3.2

      Description

      we have a configuration from a MessageDrivenChannelAdapter like this

      <int-jms:message-driven-channel-adapter channel="..." connection-factory="..." destination-name="..." pub-sub-domain="true" subscription-name="..." subscription-shared="true" subscription-durable="true" auto-startup="..." error-channel="errorChannel"/>
      

      I have been able to replicate most of the configuration:
       

      JmsMessageDrivenChannelAdapterListenerContainerSpec<JmsDefaultListenerContainerSpec, DefaultMessageListenerContainer> destination = 
        Jms
          .messageDrivenChannelAdapter([connection-factory]) 
          .destination([destination-name]) 
          .autoStartup([auto-startup]) 
          .configureListenerContainer(c -> c 
              .pubSubDomain(true) 
              .subscriptionDurable(true) 
              .durableSubscriptionName([subscription-name]) ) 
          .errorChannel(errorChannel);
      

      But I can't find in the DSL how to mark the subscription as shared

      How this should be achieved?

      Thanks for your help

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: