What JVM-based scripting language support @WebService to create services at runtime?

Viewed 518

I am at a situation where I need to be able to create and expose a webservice at run time. (i.e. no "javac"-compilation step).

Is there a JVM-based scripting language that has good support for JAX-WS so I can write a central engine in Java, and then just let the scripting language create the snippets containing the web service methods (with either @WebService or @WebMethod annotations) which can then be passed to

http://docs.oracle.com/javase/6/docs/api/javax/xml/ws/Endpoint.html#publish(java.lang.String, java.lang.Object)

If at all possible, please provide an example of how to do it correctly.

Any suggestions?

1 Answers
Related