Announcement Announcement Module
Collapse
No announcement yet.
JObExecutionListener not being called Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JObExecutionListener not being called

    CAn someone please tell me why my JobExecutionListener is NOT being called in the job configuration below?
    the propertiesUtility bean implements JobExecutionListener interface

    Code:
    	<bean id ="dqPropertiesUtility" class="com.utility.PropertyUtility">
    		<property name="propertyFiles">
    			<list>
    				<value>common.properties</value>	
    			</list>
    			</property>		
    	</bean>
    	
                    <batch:job id="generateDataJob" job-repository="transitive-etl-jobRepository">
    		 <batch:listeners>
    				<batch:listener ref="propertiesUtility"/>
    		</batch:listeners>
    		<!-- Perform final wrap-up task(s) which belong to all flows -->
    		<batch:step id="generate">  
    			<batch:tasklet ref="dqetl.generateData">
    				<batch:listeners>
    					<batch:listener ref="dataResource"/>
    			</batch:listeners>	
    			</batch:tasklet>
    			<batch:fail on="FAILED" exit-code="FAILED"/>
    			<batch:next on="COMPLETED" to="send"/>
    		</batch:step>
    		<batch:step id="send">  
    			<batch:tasklet ref="dqetl.send">
    				<batch:listeners>
    					<batch:listener ref="aHandler"/>
    			</batch:listeners>	
    			</batch:tasklet>
    			<batch:fail on="FAILED" exit-code="FAILED"/>
    			<batch:end  on="*"/>
    		</batch:step>		
    	</batch:job>

  • #2
    Where is the bean propertiesUtility defined? The bean you have defined above the job is dqPropertiesUtility...

    Comment


    • #3
      spring quartz

      Hi,

      I'm beginner with spring quartz and i have a problem for my project.

      I'would whan my job is failed or sleep, the scheduler relance it and the job can retake
      where it has stopped.

      I can send you a class what do you do at this time.

      Please can i have a response, exemple or others suggestions.

      Thanks a lot

      Comment

      Working...
      X