Announcement Announcement Module
Collapse
No announcement yet.
Spring Integration 1.0 Release Candidate 2 is now available Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Integration 1.0 Release Candidate 2 is now available

    Please visit the Spring Integration home where you will find links to the download, the updated Reference Documentation, and more: http://www.springsource.org/spring-integration

    There is one change in RC2 that will impact most Spring Integration applications. Luckily, it is very easy to make the necessary update - only requires removing a single element from your config:
    Code:
    <!-- remove this! no longer available in RC2 -->
    <si:message-bus/>
    Now, instead of requiring a single "MessageBus" component, the endpoints manage their own Lifecycles, and the central "taskScheduler" bean manages the scheduling of pollers. So, while we apologize for this minor inconvenience, we think this decentralization will prove to be well worth it down the road.

    If you prefer that a given endpoint is not auto-started, then add the "auto-startup" attribute to its definition with a value of 'false'.

    To define and configure your own TaskScheduler (which is highly recommended!), simply use that bean name ("taskScheduler"). Otherwise, a default instance will be available any time you are using the namespace support. The same applies for the "errorChannel" bean name.

    For programmatic access, these two bean names are defined as constants:
    Code:
    IntegrationContextUtils.TASK_SCHEDULER_BEAN_NAME
    IntegrationContextUtils.ERROR_CHANNEL_BEAN_NAME
    Also, you can retrieve the TaskScheduler anytime you have access to the BeanFactory:
    Code:
    // this may return null..
    IntegrationContextUtils.getTaskScheduler(beanFactory);
    
    // this will throw an Exception if the bean is not defined...
    IntegrationContextUtils.getRequiredTaskScheduler(beanFactory);
    Finally, if you are using annotation support with inputChannel/outputChannel, then change the following...
    FROM THIS:
    Code:
    <si:message-bus enable-annotations="true"/>
    TO THIS:
    Code:
    <si:annotation-config/>
    Please download RC2 today and provide your feedback here in the forums. If you find any issues, please report them in JIRA.

    Thanks!
    -Mark
Working...
X