Announcement Announcement Module
No announcement yet.
Channel interceptor without subscribers Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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">
    <ref bean="onlineMdcCleanerInterceptor"/>

    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">
    <ref bean="trafficMonitoringInterceptor"/>

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

    Kind regards

  • #2
    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.