Search code examples
spring-bootjbosswarspring-webfluxspring-cloud-gateway

How to deploy Spring Cloud Gateway 2.1 on Jboss or Tomcat?


I want to a deploy Spring Cloud Gateway but it is built on Spring Framework 5, Project Reactor.

Can I create a WAR file and deploy it on a traditional application server such as Jboss or Tomcat.

The Spring documentation in this page says it is possible.

Spring WebFlux is supported on Tomcat, Jetty, Servlet 3.1+ containers

Note: this is Spring Cloud Gateway project link https://spring.io/projects/spring-cloud-gateway


Solution

  • I don't think this is possible, as Spring Cloud Gateway is itself a Spring Boot WebFlux application and this use case is only supported with embedded servers, as mentioned in the Spring Boot reference documentation.