Is it possible to get jobId or JobName in ItemWriter in spring package.
I read about the end of the binding , but not sure how to use it to get the job name or job id in Item Writer.
I configured my author as
<bean id="myWriter" ref="com.eg.man.EodWriter" scope="step">
<property name="jobInstanceId" value="#{stepExecution.jobExecution.jobId}"/>
</bean>
but I donβt know how to use it in the writer class to get the value.
Edit I also found this link, which says that you can get the identifier in the record, but again, how to use it in the writer class
source
share