Announcement Announcement Module
Collapse
No announcement yet.
A problem about the channel in the configure file? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • A problem about the channel in the configure file?

    I rewrite a new QueueChannel like the spring integration, also extends the class AbstractPollableChannel,but now I don't know how to injection my own channel in the configrue file.somebody have the demos? thank you.

  • #2
    Just configure your channel as a regular spring bean:

    <bean id="customChannel" class="...">
    </bean>

    and use it in any message handler, e.g.,

    <si:bridge input-channel="customChannel" output-channel="someOtherChannel"/>

    Comment


    • #3
      Why are you writing a queue channel?
      There is one in Spring Integration
      Code:
      <channel id="myQueue">
           <queue capacity="1000"/>
      </channel>
      Will create a queue channel which can hold up to 1000 messages. THen you can configure poller to extract messages from it.

      Comment

      Working...
      X