Is it possible to get jobId or JobName in ItemWriter in spring batch.
I read about late binding but not sure how to use it to get job name or job id in Item Writer.
I configured my writer 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 writer class to get value.
Edit I also found this link which say you can get id in Write but again how to use it in writer class