Skip to content

Remote fragments

miguelperezcolom edited this page Oct 12, 2024 · 1 revision

Sometimes you want to add a component which has been defined in another micro service. This meaning you do not have access to the java class which defines that UI fragments.

For those cases you can use the JourneyStarter component. E.g.:

  JourneyStarter remote = new JourneyStarter(
          "com.example.demo.infra.ui.helloworld.HelloWorld",
          "",
          "/mateu/v3",
          "{\"nombre\":\"Mateu\",\"age\":16}"
  );

You can use that as any other component, so your UI can contain fragments from different micro services.

Clone this wiki locally