WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Spring Boot application deployment on Liberty

    Posted Tue June 02, 2020 04:37 PM
    I am working with a client that is looking to deploy 20 or more Spring Boot
    applications to run on Liberty, on an IBM i system. The knowledge center
    page at
    https://www.ibm.com/support/knowledgecenter/en/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_dep_springboot.html
    implies that a Liberty server can have only 1 Spring Boot application. Is
    that the situation and if they have 20 applications they will need 20
    Liberty servers?

    George Weaver, Certified IT Specialist
    Power Systems Consultant
    Lab Services Power Systems Delivery Practice
    email: weave@us.ibm.com
    phone: (507) 253-2267


  • 2.  RE: Spring Boot application deployment on Liberty

    Posted Wed June 03, 2020 12:44 PM
    When using the the springBoot (1.5 or 2.0) features then it is true that only a single Spring Boot application can be deployed to a single Liberty server configuration.  If they have 20 Spring Boot applications then they need to configure 20 different Liberty Servers.  This is to mimic how Spring Boot applications are deployed when they use the uber JAR approach and launch a single JVM with a single application with java -jar mySpringBootApp.jar.  This allows the Spring Boot application to have sole control over configuring the server related configurations.

    That being said, if a customer really has a requirement to deploy all 20 Spring Boot applications to a single Liberty server configuration then they can deploy each Spring Boot application as a WAR.  But first they need to be sure to package the application as a WAR (for example, by following http://www.adeveloperdiary.com/java/spring-boot/deploy-spring-boot-application-ibm-liberty-8-5/).  This has limitations, but for most Spring Boot applications it is sufficient.

    ------------------------------
    Tom Watson
    ------------------------------