http://wikis.sun.com/display/Jersey/WADL
On Tue, Jul 14, 2009 at 11:00 PM, falconair <shahbazc_at_gmail.com> wrote:
>
> My primary goal is not to create a web services application, I am thinking
> of
> using web services as an easy way to administer my application. This is
> what I want to do:
>
> Since it looks like annotations make it easy to expose some methods web
> services, I want to use this functionality to avoid creating lots of
> command
> objects (which are just painful boilerplate as far as I'm concerned). My
> application consists of a number of services (specifically, my services are
> stock trading algorithms). I need to start/stop these services, I need to
> update certain parameters, etc. I'd like to be able to do these things not
> just programatically (in which case I can just call the methods), but also
> through the command line, through remote GUIs and perhaps even through the
> web.
>
> If I have a method "doSomething(String, x, int y)," I can annotate it with
> Jersey and have the ability to call it remotely. Once certain methods are
> exposed, I can write generic wrappers to take the command name and
> parameter
> list and generate command line interfaces, GUI screens, etc. If I need to
> add a new method, I simply annotate it, rather than manually writing
> commands, GUIs and so on.
>
> However, I can't figure out if there is a way for me to get a list of all
> available annotated methods (or a list of all available web services).
> Further, I'd like to know if it is possible for me to get a list of
> available services, and for each services, list of available commands. Is
> this something I have to code myself, or is it provided already?
>
> I think I mixed up my terminology there a bit, but hopefully I've explained
> enough to give an idea of what I am trying to do...avoid writing repetitive
> code as much as possible.
>
> I'll appreciate pointers to relevant docs as well as general feedback on
> using Jersey in this way.
>
> Thanks!
> --
> View this message in context:
> http://n2.nabble.com/newbie-needs-to-understand-how-to-%28ab%29use-Jersey-tp3261275p3261275.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>