Announcement Announcement Module
Collapse
No announcement yet.
Lifecycle support for JDBC inbound channel adapter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lifecycle support for JDBC inbound channel adapter

    Currently, it seems that the jdbc:inbound:channel-adapter (with a poller) starts immediately after the Spring context initializes. I'd like to be able to explicitly start the adapter after some checks.

    Is it possible to apply lifecycle support (start/stop events) to the jdbc adapter or poller?

    Thanks,
    Shane

  • #2
    https://jira.springsource.org/browse/INT-1535. Does that help?

    Comment


    • #3
      Yes. Although the Lifecycle interface methods (start, stop, isRunning) would also be nice. My intention is to be able to start/stop the adapter programmatically.

      Comment


      • #4
        There is a Lifecycle in the endpoint. You could pull it out by extracting the bean by id (give the adapter an id), or via JMX if you use the Spring Integration JMX support.

        Comment


        • #5
          Could you elaborate on "extracting the bean by id" and invoking the Lifecycle methods on the adapter? It seems the jdbc:inbound-channel-adapter element doesn't allow an id attribute.
          Last edited by digitalsanctum; Oct 19th, 2010, 09:02 AM.

          Comment

          Working...
          X