Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-4198

Programmatic rest service

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Resolved
    • Minor
    • Resolution: Information Provided
    • None
    • None
    • TomEE Core Server
    • None

    Description

      I'd like to create a restful endpoint, in the fashion described here https://tomee.apache.org/tomee-8.0/examples/simple-rest.html, in a programmatic way that is idiomatic to TomEE.

      For example, instead of annotating a method like this below, to bind the method to an http endpoint, I'd like to be able to programmatically create the binding ....

          @PUT
          @Path("orders/invoice/{id}")
          @Produces({MediaType.APPLICATION_XML})
          @Lock(LockType.READ)
          public Response DoSomething()

      {         ...     }

       

      Is such a thing possible ?

      How do I tie into the underlying objects TomEE manages so that I can "register" a new http endpoint in the same sort of fashion as I do above via annotations ?

       

      Attachments

        1. PublicAPI.java
          1 kB
          Tim Clapp

        Activity

          People

            Unassigned Unassigned
            Zed Tim Clapp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: