Announcement Announcement Module
Collapse
No announcement yet.
What to use instead of TrivialExpressionSource ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • What to use instead of TrivialExpressionSource ?

    as this class is not present anymore in the api ?

    Code:
    <aop:config>
       <aop:advisor advice-ref="jobMessagePublishingInterceptor" pointcut="execution(* *..Job+.execute(..))" />
    </aop:config>
    <bean id="jobMessagePublishingInterceptor" class="org.springframework.integration.aop.MessagePublishingInterceptor"
        xmlns="http://www.springframework.org/schema/beans">
        <constructor-arg index="0">
           <bean class="org.springframework.batch.admin.integration.TrivialExpressionSource" p:payload="#args[execution]" />
        </constructor-arg>
        <property name="defaultChannel" ref="job-operator" />
    </bean>
    Last edited by anshumania; Jun 17th, 2011, 11:26 AM.

  • #2
    I think it was only needed for early snapshots and was superceded by Spring Integration 2.0 when it was released.

    Comment

    Working...
    X