Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Maven Pre-Integration launching two spring boot apps

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello I am using Spring Boot to create an integration test. I have a mediator class and a test class where I have two separate spring boot applications running on local host but on two different ports.

They each have their own ( and and they are respectively in src/main and src/test). My mediator class is connected to a northbound SOAP endpoint. I want to test these soap calls using an integration test class. I want it to launch on my test server but also launch my mediator server.

I want to do this in my pre-integration in my pom.xml

Currently I have this

How do I specify to start the two different servers on two different ports?

I know I can do this in my Spring test class by getting the property source and telling which classes to run although I do not know if Spring can handle that annotation(specifying two property sources and running SpringBootTest with two apps). I have a feeling that it will most likely break.

I also want to avoid things like making a shell script. I want to do this in Maven.

I have tried setting the ports in to a custom name and setting them as arguments to connect but it's not pointing to any of my classes and not running both servers.

You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic