Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8290913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:57:06+00:00 2026-06-08T12:57:06+00:00

I have an Inbound File Channel Adapter with the auto-startup property set to false

  • 0

I have an Inbound File Channel Adapter with the auto-startup property set to false. This adapter is the starting point for my application; if it sends no messages notifying the system of files, I expect everything else to be inert.

However, upon starting my context, messages start flowing through the system. Why?

Config:

<int-file:inbound-channel-adapter auto-startup="false" id="fileWatcher" directory="${input.dir}" channel="incomingFiles">
    <int:poller fixed-rate="1000"></int:poller>
</int-file:inbound-channel-adapter>

<int:channel id="incomingFiles"></int:channel>

Main method:

public static void main(String[] args) { 
    logger.info("Started application");
    ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:/spring-config/*.xml");
    context.start();
}

Logs:

[...]
12:06:56.743 [main] INFO  o.s.i.e.SourcePollingChannelAdapter - started fileWatcher
12:06:56.770 [task-scheduler-6] INFO  o.s.i.file.FileReadingMessageSource - Created message: [[Payload=C:\input\From Spreadsheet.txt][Headers={timestamp=1343214416770, id=b8e92486-d469-406e-8787-df78e23b287a}]]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:57:07+00:00Added an answer on June 8, 2026 at 12:57 pm

    set auto-startup=”false” on the adapter (it is true by default).

    You can manually start it getting a reference to it and call fileWatcher.start(). This is also available over JMX if you include the integration MBean exporter.

    Or, you can send a message to a <control-bus /> containing ‘@fileWatcher.start()’ in its payload.

    Oh; I just noticed you have it already.

    DON’T call context.start() – that will start all the beans, regardless of their auto-startup setting.

    auto-startups controls, err, AUTO startup – you are manually starting the context.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Grails webapp running a Spring Integration inbound-channel-adapter that is configured to
I have file channel adapter which need to listen to a directory in specfied
I have a spring integration flow triggered by the cron expression like follows: <int-ftp:inbound-channel-adapter
I am new to Spring Integration. I've configured a Spring file inbound-channel-adapter, e.g. <file:inbound-channel-adapter
I have a server reading inbound newline-delimited strings. The pipeline looks like this: ...
hi i have a flow in mule like this <flow name=MuleService> <vm:inbound-endpoint path=ms exchange-pattern=request-response
I have written a TCP server application in c#. Application listens for inbound connections
I have a mule-config file where i have defined a http inbound to accept
I have the below flow <file:endpoint name=StartPoint path=C:\input pollingFrequency=5000 doc:name=File/> <flow name=fileUploader doc:name=fileUploader> <quartz:inbound-endpoint
I have this code which extracts data from a csv file and then reformats

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.