[jboss-jira] [JBoss JIRA] (WFLY-7210) Expose JAX-RS resources as children of the subsystem

Lin Gao (JIRA) issues at jboss.org
Fri Nov 18 04:22:00 EST 2016


    [ https://issues.jboss.org/browse/WFLY-7210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13324659#comment-13324659 ] 

Lin Gao commented on WFLY-7210:
-------------------------------

Each root REST resource class(the class with annotation {{@Path}}) will be a child resource in management model, this is the only level of child resource added in management model for this. There is NO child resource defined for each method(with REST annotations like: @GET, @Path, etc) defined in this class. The {{rest-resource-paths}} and {{sub-resource-locators}} are metrics attributes of ModelNode type: LIST.

I wrote a page for the example, would you please take a look at here: https://github.com/gaol/quickstart/wiki/WFLY-7024-REST-resource-example ?

I don't know whether my concern about too many child resources makes sense or not, I am open to any suggestions. :)  If the effort made to display more user friendly UI in web console is small, I think it would be good to do there, otherwise, I can try with another level of child resource for this. :)

> Expose JAX-RS resources as children of the subsystem
> ----------------------------------------------------
>
>                 Key: WFLY-7210
>                 URL: https://issues.jboss.org/browse/WFLY-7210
>             Project: WildFly
>          Issue Type: Feature Request
>          Components: REST
>    Affects Versions: 10.1.0.Final
>            Reporter: Guillermo González de Agüero
>            Assignee: Lin Gao
>         Attachments: after-wfly7024.png, hal-jaxrs.png
>
>
> Servlets, EJBs, WebSockets, JPA, etc expose its components as children of the subsystem in the management API. For example to list the stateless EJBs of a deployment: 
> [standalone at localhost:9990 /] /deployment=cdivsejb.war/subsystem=ejb3:read-children-resources(child-type=stateless-session-bean)
> This makes it specially easy to navigate trough the web console (attached screenshot).
> To read JAX-RS resources, the command would be:
> [standalone at localhost:9990 /] /deployment=cdivsejb.war/subsystem=jaxrs:show-resources()
> I propose to make deprecate the show-resources operation and create a new "resources" child, containing the Rest resources.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jboss-jira mailing list