Results 1 to 3 of 3

Thread: A problem about the channel in the configure file?

  1. #1

    Default 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. #2
    Join Date
    Oct 2004
    Location
    Berwyn, PA
    Posts
    57

    Default

    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"/>

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

    Default

    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.

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
  •