I'm confused about the JAX-WS Endpoint functionality, and publishing
a Provider<T>
This code:
public static void main(String[] args) {
Endpoint e = Endpoint.create(HTTPBinding.HTTP_BINDING,
new AccountProvider());
e.publish("
http://localhost:8084/account");
try {
Thread.sleep(300000);
} catch(InterruptedException ex_) {
}
e.stop();
System.out.println("Endpoint stopped");
}
runs under JDK 1.6 but on JDK 1.5.0_07-b03 I'm getting :
Exception in thread "main" java.lang.UnsupportedOperationException: NOT SUPPORTED
at com.sun.xml.ws.transport.http.server.EndpointImpl.checkPlatform(EndpointImpl.java:169)
at com.sun.xml.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:84)
Should this work on JDK 1.5?
This is on Solaris 10/SPARC.
Thanks.