Hi !
First, I have to apologize if this post is not in the right forum, but as the final goal is about Web Services, and as someone can give me another way to generate web services dynamically I think that my post should be here.
So, as I said, I want to be able to create a web service on certain call from a method.
Right now, I am trying to use a proxy design
pattern (or something near) to instanciate my generic RESTful web service class.
Using JAX-RS, I use the @Path annotation. That's where the problem comes from.
In fact, I want to be able to use this annotation in a way like
which is not allowed as the attribute must be a constant.
Therefore, I was thinking of declaring my own @Path annotation in which I would call the JAX-RS @Path implementation with the correct id.
Problem is, I don't know if I can do that, nor how to.
I hope someone will be able to give me some clues…
Thank you in advance.