I'm developing some applications on Spring Boot, They're included one web application and three non-web applications.
With non-web applications, they're listen on message broker (RabbitMQ) and consume the message which they received. It work as a Worker. And because they are not web application I just implement CommandLineRunner
for Spring Boot main class of Workers
@SpringBootApplication
public class InternalworkerApplication implements CommandLineRunner {
public static Logger logger = LoggerFactory.getLogger(InternalworkerApplication.class);
public static void main(String[] args) {
SpringApplication app = new SpringApplication(InternalworkerApplication.class);
app.setBannerMode(Banner.Mode.OFF); //disable spring banner
app.run(args);
}
@Override
public void run(String... args) throws Exception {
logger.info("Internal Worker running...");
}
}
And now, I have to deploy my applications (include web app and non-web apps) on Weblogic Server.
With web application, just need extends SpringBootServletInitializer
and implements WebApplicationInitializer
to deploy it on Weblogic.
But with my non-web applications, How can I deploy it to Weblogic without implements WebApplicationInitializer
More advanced , I want to containerized my applications. With Tomcat, I did get it to work with run applications on each container to work together with Docker. How can I do same thing with Weblogic