Not sure you have a cxf transport to do so and that it is legal for ee spec.
Le 8 nov. 2015 05:47, "aibar" <[email protected]> a écrit :

> Hi! I am trying to create class at runtime and publishing it instance:
> Class:
> package test; @javax.jws.WebService public class Hello { public String
> getHello() { return "Hello"; } }
>
> 1) Compile class, put .class file in /tmp
> 2) Create URLClassLoader for /tmp
> 3) Load and create instance of compiled class using this classloader
> 4) Finally publishing Endpoint.publish("http://localhost:8080/hello";,
> helloInstance);
>
> console output:
>
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromClass
> INFO: Creating Service {http://test/}HelloService from class test.Hello
> org.apache.cxf.endpoint.ServerImpl initDestination
> INFO: Setting the server's publish address to be
> http://localhost:8080/hello
>
> But web service isn't published at http://localhost:8080/hello
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Endpoint-publish-tp4676749.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to