January 2019
Beginner to intermediate
352 pages
8h
English
In this phase, the class initializes all of the elements needed to perform the invocations to other microservices, and obtains, with the LRA implementation, the LRAClient that's needed to interact with the LRA coordinator:
@ApplicationScoped @Path("/footballplayer-market") public class FootballPlayerMarketREST { private static final Logger LOG = Logger.getLogger(FootballPlayerMarketREST.class.getName()); private Client footballPlayerClient; private Client footballPlayerOfferClient; private WebTarget footballPlayerTarget; private WebTarget footballPlayerOfferTarget; @Inject private LRAClient lraClient; @PostConstruct private void init() { footballPlayerClient = ClientBuilder.newClient(); footballPlayerOfferClient = ClientBuilder.newClient(); ...Read now
Unlock full access