You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/01/21 08:59:26 UTC

[GitHub] [shardingsphere-elasticjob] TeslaCN commented on issue #1819: I developed my own JobListener,but i don't know how to use it. can you give me some examples for using it? help me ,thanks

TeslaCN commented on issue #1819:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1819#issuecomment-764485788


   Hi @dolphin-bear 
   `JobListener` is discovered by SPI.
   
   1. You may specify your implementation under `META-INF/services/org.apache.shardingsphere.elasticjob.infra.listener.ElasticJobListener` like the following file.
   https://github.com/apache/shardingsphere-elasticjob/blob/master/elasticjob-lite/elasticjob-lite-core/src/test/resources/META-INF/services/org.apache.shardingsphere.elasticjob.infra.listener.ElasticJobListener
   
   2. Specify the type of your implementation in `JobConfiguration`.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org