I just started to use spring batch and pretty new at this and I need help. What I'm trying to do is to use ExecutionContext to dynamically set the properties (sql query) in the bean. Something like following:
The sql query and other bean properties will be pulled from the databaseCode:<bean id="chunkReader" class="org.springframework.batch.item.database.JdbcCursorItemReader"> <property name="sql" value="#{executionContext[sqlName]}" /> </bean>
Is it possible?
If so where would I declare this ExecutionContext and populate it?
If not is there other way to set this dynamically on the runtime without using the .properties file?
Thanks


Reply With Quote