Java Magazine, Sept/Oct 2018
ORACLE COM JAVAMAGAZINE SEPTEMBER OCTOBER 2018 32 the leading edge @ Override public Set Class getClasses Set Class resources new java util HashSet addRestResourceClasses resources return resources private void addRestResourceClasses Set Class resources resources add org javamagazine sportsteamqueryservice service TeamRosterFacadeREST class The @ ApplicationPath annotation is used to define the URL path to use as an entry point for each of the services RESTful web services All resource classes that are used as a RESTful service must be registered within the ApplicationConfig The REST service class is named TeamRosterFacadeREST as shown in Listing 5 Listing 5 @ javax ejb Stateless @ Path teamrosterqueryservice public class TeamRosterFacadeREST @ PersistenceContext unitName SportsTeamQueryServicePU private EntityManager em
You must have JavaScript enabled to view digital editions.