I want to run some jobs just after loading the Spring context but I do not know how to do this. Do you have any idea how to do that?
Another possibility would be to register a listener to application context events (). Basically it's the same as skaffman's solution, just implement:
org.springframework.context.ApplicationListener
instead of Lifecycle. It has only one method instead of three. :-)