Skip to content
Snippets Groups Projects
Commit e8dda569 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3665 remove spring boot exit command

parent 5257124b
No related branches found
No related tags found
No related merge requests found
package de.ozgcloud.eingang.xta;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Profile;
import org.springframework.context.event.ContextRefreshedEvent;
......@@ -23,15 +21,10 @@ class XtaRunner implements ApplicationListener<ContextRefreshedEvent> {
@Autowired
private SemantikAdapter semantikAdapter;
@Autowired
private ApplicationContext context;
@Override
public void onApplicationEvent(ContextRefreshedEvent event) {
LOG.info("Fetching XTA Messages");
runGetXtaMessages();
SpringApplication.exit(context, () -> 0);
}
void runGetXtaMessages() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment