Details
-
Documentation
-
Status: Resolved
-
Minor
-
Resolution: Information Provided
-
None
-
None
-
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 ?