IBMStockTrader / portfolio

Microservice implemented with MicroProfile that persists stock portfolios to JDBC (such as DB2)
Apache License 2.0
7 stars 60 forks source link

Split the JAX-RS Application to separate class from REST operations #56

Open jwalcorn opened 2 months ago

jwalcorn commented 2 months ago

Per https://github.com/OpenLiberty/open-liberty/issues/29335, we should make an essentially empty class that extends jakarta.ws.rs.core.Application, and annotate that as ApplicationScoped, while continuing to have PortfolioService be the class with the impls for each REST operation (but no longer be a subclass of Application) and be what is annotated as RequestScoped.

Note this isn't specific to Portfolio - we should do this for each of our RESTful services (Broker, Portfolio, StockQuote, Account, CashAccount, Notification)