Results 1 to 2 of 2

Thread: Channel interceptor without subscribers

  1. #1

    Default Channel interceptor without subscribers

    Hi all.
    I need to configure a channel with a interceptor without a subscriber, something like this below:

    <int:channel id="endPointEventMessageChannel">
    <int:interceptors>
    <ref bean="onlineMdcCleanerInterceptor"/>
    </int:interceptors>
    </int:channel>

    If I run the application I receive this exception:
    Caused by: java.lang.IllegalStateException: Dispatcher has no subscribers.

    The reference manual shows the same example:
    <channel id="exampleChannel">
    <interceptors>
    <ref bean="trafficMonitoringInterceptor"/>
    </interceptors>
    </channel>

    Is not possible to have a channel only with an interceptor without a subscriber?

    Kind regards
    Massimo

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Could you please describe your use case? What are you trying to accomplish?
    Your current configuration is obviously wrong since you are defining a DirectChannel which is there to support P2P messaging model and P2P model states that both producer and consumer *must* be present.

    So please describe your use case and we'll help you to find the right solution.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •